Handles Service Provider SAML responses: metadata generation, assertion consumption, and logout handling.
Functions
send_metadata/1- Returns SP metadata XML for the given IdPconsume_signin_response/2- Processes the IdP sign-in response and returns the assertionhandle_logout_response/1- Processes the IdP logout responsehandle_logout_request/1- Processes an IdP-initiated logout request
Summary
Functions
Processes the IdP sign-in response and extracts the SAML assertion.
Handles an IdP-initiated logout request.
Processes the IdP logout response and redirects to the target URL.
Returns the SP metadata XML for the IdP in conn.private[:ex_saml_idp].
Returns the fallback target URL from application config (defaults to "/").
Returns the target URL from session or relay state cache.
Functions
Processes the IdP sign-in response and extracts the SAML assertion.
Returns {:ok, %{assertion: assertion, nonce: nonce, user_token: token, redirect_uri: uri}}
on success, or {:error, reason} on failure.
Handles an IdP-initiated logout request.
Processes the IdP logout response and redirects to the target URL.
Returns the SP metadata XML for the IdP in conn.private[:ex_saml_idp].
Returns the fallback target URL from application config (defaults to "/").
Returns the target URL from session or relay state cache.