Liking cljdoc? Tell your friends :D

saml20.sp


bump-saml-id-timeout!clj

(bump-saml-id-timeout! saml-id-timeouts saml-id issue-instant)

Sets the current time to the provided saml-id in the saml-id-timeouts ref map. This function has side-effects.

Sets the current time to the provided saml-id in the saml-id-timeouts ref map.
This function has side-effects.
sourceraw docstring

create-requestclj

(create-request time-issued
                saml-format
                saml-service-name
                saml-id
                acs-url
                idp-uri)

Return XML elements that represent a SAML 2.0 auth request.

Return XML elements that represent a SAML 2.0 auth request.
sourceraw docstring

create-request-factoryclj

(create-request-factory mutables idp-uri saml-format saml-service-name acs-url)
(create-request-factory next-saml-id-fn!
                        bump-saml-id-timeout-fn!
                        xml-signer
                        idp-uri
                        saml-format
                        saml-service-name
                        acs-url)

Creates new requests for a particular service, format, and acs-url.

Creates new requests for a particular service, format, and acs-url.
sourceraw docstring

generate-mutablesclj

(generate-mutables)
source

get-idp-redirectclj

(get-idp-redirect idp-url saml-request relay-state)

Return Ring response for HTTP 302 redirect.

Return Ring response for HTTP 302 redirect.
sourceraw docstring

make-saml-decrypterclj

(make-saml-decrypter keystore-filename keystore-password key-alias)
source

make-saml-signerclj

(make-saml-signer keystore-filename
                  keystore-password
                  key-alias
                  &
                  {:keys [algorithm] :or {algorithm :sha1}})
source

metadataclj

(metadata app-name acs-uri certificate-str)
(metadata app-name acs-uri certificate-str sign-request?)
source

next-saml-id!clj

(next-saml-id! saml-last-id)

Returns the next available saml id.

Returns the next available saml id.
sourceraw docstring

parse-saml-assertionclj

(parse-saml-assertion assertion)

Returns the attributes and the 'audiences' for the given SAML assertion

Returns the attributes and the 'audiences' for the given SAML assertion
sourceraw docstring

parse-saml-resp-statusclj

(parse-saml-resp-status saml-resp)

Parses and returns information about the status (i.e. successful or not), the version, addressing info etc. of the SAML response Check the javadoc of OpenSAML at: https://build.shibboleth.net/nexus/service/local/repositories/releases/archive/org/opensaml/opensaml/2.5.3/opensaml-2.5.3-javadoc.jar/!/index.html

Parses and returns information about the status (i.e. successful or not), the version, addressing info etc. of the SAML response
Check the javadoc of OpenSAML at:
https://build.shibboleth.net/nexus/service/local/repositories/releases/archive/org/opensaml/opensaml/2.5.3/opensaml-2.5.3-javadoc.jar/!/index.html
sourceraw docstring

parse-saml-responseclj

(parse-saml-response raw-response)

Does everything from parsing the verifying saml data to returning it in an easy to use map.

Does everything from parsing the verifying saml data to returning it in an easy to use map.
sourceraw docstring

prune-timed-out-ids!clj

(prune-timed-out-ids! saml-id-timeouts timeout-duration)

Given a timeout duration, remove all SAML IDs that are older than now minus the timeout.

Given a timeout duration, remove all SAML IDs that are older than now minus the timeout.
sourceraw docstring

pull-attrsclj

(pull-attrs loc attrs)
source

response->mapclj

(response->map saml-resp)

Parses and performs final validation of the request. An exception will be thrown if validation fails.

Parses and performs final validation of the request. An exception will be thrown if validation fails.
sourceraw docstring

saml-resp->assertionsclj

(saml-resp->assertions saml-resp decrypter)

Returns the assertions (encrypted or not) of a SAML Response object

Returns the assertions (encrypted or not) of a SAML Response object
sourceraw docstring

validate-saml-response-signatureclj

(validate-saml-response-signature saml-resp idp-cert)

Checks (if exists) the signature of SAML Response given the IdP certificate

Checks (if exists) the signature of SAML Response given the IdP certificate
sourceraw docstring

xml-string->saml-respclj

(xml-string->saml-resp xml-string)

Parses a SAML response (XML string) from IdP and returns the corresponding (Open)SAML Response object

Parses a SAML response (XML string) from IdP and returns the corresponding (Open)SAML Response object
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close