Handles SAML authentication requests (sign-in and sign-out) with the Identity Provider.
Functions
request_idp/2- Initiates a full SAML SSO request to a specific IdPsend_signin_req/1- Sends a sign-in request using the IdP fromconn.private[:ex_saml_idp]send_signout_req/1- Sends a sign-out request for the current session
Summary
Functions
Handles the full SAML request to the IdP without requiring an intermediate HTML form. Can be called directly in a Phoenix controller action.
Sends a SAML sign-in request to the IdP.
Sends a SAML sign-out request to the IdP.
Functions
Handles the full SAML request to the IdP without requiring an intermediate HTML form. Can be called directly in a Phoenix controller action.
You do not need to call initiate_sso_req, then send_signin_req: the full processus is done.
Sends a SAML sign-in request to the IdP.
Expects conn.private[:ex_saml_idp] and conn.private[:ex_saml_target_url] to be set.
If the user already has a valid assertion for this IdP, redirects to the target URL.
Sends a SAML sign-out request to the IdP.
Expects conn.private[:ex_saml_idp] to be set. Requires an active assertion
for the current IdP, otherwise returns 403.