Skip to main content

Module saml

Module saml 

Source

Structs§

SamlAcsRequest
SAML ACS (Assertion Consumer Service) request
SamlLogoutRequest
SAML logout request
SamlLogoutResponse
SAML logout response
SamlMetadataResponse
SAML metadata configuration
SamlSsoRequest
SAML SSO initiation request
SamlSsoResponse
SAML SSO response containing redirect URL

Functions§

create_saml_assertion
Create SAML assertion (for Identity Provider functionality)
get_saml_metadata
Get SAML metadata for this SP (Service Provider). SP configuration (entity_id, acs_url, slo_url) is read from storage key saml_sp:config. Store a JSON object with those fields to customise the metadata for your deployment.
handle_saml_acs
Handle SAML ACS (Assertion Consumer Service) - where IdP sends response
handle_saml_slo_response
Handle SAML SLO response from IdP
initiate_saml_slo
Initiate SAML Single Logout (SLO). The IdP must be pre-registered in storage under saml_idp:{idp_entity_id} with a slo_url field.
initiate_saml_sso
Initiate SAML SSO flow. The IdP must be pre-registered in storage under the key saml_idp:{idp_entity_id} as a JSON object with at least a sso_url field. SP configuration is read from saml_sp:config (fields: entity_id, acs_url).
list_saml_idps
List configured SAML Identity Providers. IdPs are indexed in storage under the key saml_idps:index (JSON array of entity ID strings). Each IdP’s configuration is stored under saml_idp:{entity_id}.