-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add doSignResponse property to session during IDP Initiated SSO Flow #399
Conversation
PR builder started |
PR builder completed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving the pull request based on the successful pr build https://github.com/wso2/product-is/actions/runs/5583687669
PR builder started |
PR builder completed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving the pull request based on the successful pr build https://github.com/wso2/product-is/actions/runs/5687488783
When populating the SAMLSSOServiceProviderDO before adding it to session data, we have missed setting the
isDoSignResponse
property from the authnReqDTO during the IDP initiated SSO authentication flow. Therefore during logout flow, the default value - false is set for this property when loaded from session data, and therefore the response will not be signed.This PR will set the DoSignResponse to SAMLSSOServiceProviderDO during SSO Auth request processing flow so that this property will be loaded correctly during logout.
This PR introduces a new config to disable signing the logout response after IDP initiated SSO logins, to preserve backward compatibility. This config will be checked before setting the above parameter.
By default, the SAML logout response for SP initiated SSO and IDP initiated SSO login flows will be signed if the
Enable Response Signing
property is enabled in the Service Provider. But if a customer requires the previous behaviour where the SAML logout response during IDP initiated SSO flow is not signed, the following config can be added to the deployment.toml.Related Issue: wso2/product-is#16207
Related PR: Bump framework after merging wso2/carbon-identity-framework#4803