Configuring Multiple Assertion Consumer Service URLs for SAML2 Service Provider with WSO2 Identity Server 5.1.0
This feature enables to define multiple assertion consumer service URLs for a SAML2 service provider.
In the SAML service provider configuration UI there is a new configuration called “Assertion Consumer URLs”. You can add multiple assertion consumer URLs for the SAML2 service provider using the “Add” button.
Since we have multiple assertion consumer URLs, we need to define a default assertion consumer URL in case we can’t retrieve it from the authentication request.
Now SP initiated SSO and IdP initiated SSO flows behave as follows,
In SP initiated SSO,
- If no AssertionConsumerServiceUrl is given in the <AuthnRequest>, IS will send the response to default ACS URL of the SP. (Whether request is signed or not)
- If the AssertionConsumerServiceUrl in <AuthnRequest> matches with one of the registered URLs, IS will send the response to the matched one.
- If the AssertionConsumerServiceUrl in <AuthnRequest> does not match with any of the registered ACS URLs and if the request is signed, then IS will send the response to the ACS URL in the request only if the signature is valid.
- Else, reject the <AuthnRequest>
In IdP initiated SSO,
- If “acs” query parameter is not present in the request, IS will send the response to default ACS URL of the SP.
- If "acs” parameter present and value of that parameter matched with any of the registered ACS URLs of the SP, then IS will send the response to the matched one.
Sample IdP initiated SSO request with acs parameter is as follows,
https://localhost:9443/samlsso?spEntityID=travelocity.com&acs=http://localhost:8080/travelocity.com/home.jsp
Comments
Post a Comment