Skip to content
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

Merged
merged 4 commits into from
Jul 28, 2023

Conversation

ImalshaG
Copy link
Contributor

@ImalshaG ImalshaG commented Jul 18, 2023

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.

[saml]
enable_saml_idp_init_logout_response_signing = false

Related Issue: wso2/product-is#16207
Related PR: Bump framework after merging wso2/carbon-identity-framework#4803

@jenkins-is-staging
Copy link

PR builder started
Link: https://github.com/wso2/product-is/actions/runs/5583687669

@jenkins-is-staging
Copy link

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/5583687669
Status: success

Copy link

@jenkins-is-staging jenkins-is-staging left a 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

ashendes
ashendes previously approved these changes Jul 26, 2023
@jenkins-is-staging
Copy link

PR builder started
Link: https://github.com/wso2/product-is/actions/runs/5687488783

@jenkins-is-staging
Copy link

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/5687488783
Status: success

Copy link

@jenkins-is-staging jenkins-is-staging left a 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

@ImalshaG ImalshaG merged commit 483d9d1 into wso2-extensions:master Jul 28, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants