With this feature WSO2 Identity Server facilitates IdP initiated SAML2 single log out requests.
In the SAML service provider configuration UI here is a new configuration called “Enable IdP Initiated SLO”. You can enable this feature using this checkbox. Also you can define redirect URL after the single log out using "Return to URL" under “Enable IdP Initiated SLO” option.
Following parameters can be used with IdP initiated SLO request.
Parameter | Description |
---|---|
slo | This is a mandatory parameter and must have the value “true” to mark the request as an IdP initiated log out request. |
spEntityID | This is an optional parameter. Value of the parameter should be the SAML issuer name as in “Issuer” field in the SAML service provider configuration UI. |
returnTo | This is an optional parameter. Value of the parameter should be the URL which needs to be redirected to, after the log out. If this parameter is present in the request, ‘spEntityID’ parameter MUST be also present. Since this needs to be a trusted location, value comes with the request must match with one of the assertion consumer URLs or return to ULRs of the service provider. |
Possible log out requests are as follows,
1. https://localhost:9443/samlsso?slo=true
When IS received this request, it will send log out requests to all service providers in the session and will redirect to the ‘https://<IS_SERVER>:9443/authenticationendpoint/samlsso_logout.do’ page. This page is the default log out page of the identity server.
Since this request has mentioned SAML2 service provider name, IS will validate it and will send log out requests to its federated IDPs if available. Then IS will send logout requests to all service providers in the session and will redirect to the 'https://<IS_SERVER>:9443/authenticationendpoint/samlsso_logout.do' page.
3. https://localhost:9443/samlsso?slo=true&spEntityID=travelocity.com&returnTo=https://localhost:8080/avs.com/slo
This request is similar to 2nd request, but we have ‘returnTo’ parameter in the request. In this case after completing similar flow as in 2nd request, IS will redirect to the URL which comes in the ‘returnTo’ parameter. This ‘retrunTo’ value need to matched with one of the ACS URLs or Return To URLs available in the SAML2 service provider configuration.
Comments
Post a Comment