(finalize-settings {:keys [endpoints idp-metadata-url onelogin-settings]
:or {endpoints {:login "/saml/login"
:authn "/saml/login"
:acs "/saml/acs"
:metadata "/saml/metadata"
:initiate-logout "/saml/initiate-logout"
:confirm-logout "/saml/confirm-logout"}}})
(wrap-saml-authentication handler
{:keys [auth-fn] :or {auth-fn identity} :as settings})
Wraps a ring handler with required SAML authentication.
auth-fn - an optional function to interpret the saml response data into an authenticated identity. defaults to clojure.core/identity endpoints - a map of uris for each of the saml endpoints being implemented by this middleware. idp-metadata-url - an optional url from which to access the idp metadata. if provided metadata will be accessed, parsed, and made part of the onelogin-settings for the middleware in order to configure the provider settings. at this time no attempt is made to periodically refresh the idp configuration. onelogin-settings - a map of onelogin settings used to configure the service provider (certificates, contact info, etc)
Wraps a ring handler with required SAML authentication. auth-fn - an optional function to interpret the saml response data into an authenticated identity. defaults to clojure.core/identity endpoints - a map of uris for each of the saml endpoints being implemented by this middleware. idp-metadata-url - an optional url from which to access the idp metadata. if provided metadata will be accessed, parsed, and made part of the onelogin-settings for the middleware in order to configure the provider settings. at this time no attempt is made to periodically refresh the idp configuration. onelogin-settings - a map of onelogin settings used to configure the service provider (certificates, contact info, etc)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close