Skip to content

Make SAML authentication request uri configurable #11316

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

Merged
merged 2 commits into from
Jun 6, 2022

Conversation

houssemba
Copy link
Contributor

Closes gh-10840

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jun 1, 2022
Copy link
Contributor

@jzheaux jzheaux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @houssemba! I've left some feedback inline.

public Saml2LoginConfigurer<B> authenticationRequestUri(String authenticationRequestUri) {
Assert.state(authenticationRequestUri.contains("{registrationId}"),
"authenticationRequestUri must contain {registrationId} path variable");
this.authenticationRequestUri = authenticationRequestUri;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a check here for OpenSAML 3 usage and break. We shouldn't add this support to OpenSAML 3 since Spring Security no longer supports it.

@jzheaux jzheaux self-assigned this Jun 1, 2022
@jzheaux jzheaux added type: enhancement A general enhancement in: saml2 An issue in SAML2 modules status: duplicate A duplicate of another issue and removed status: waiting-for-triage An issue we've not yet triaged labels Jun 1, 2022
@jzheaux jzheaux added this to the 6.0.0-M6 milestone Jun 1, 2022
@houssemba
Copy link
Contributor Author

Thanks, @houssemba! I've left some feedback inline.

Thanks @jzheaux for your review. I have taken your feedback into account. Don't hesitate if I forget something.

@houssemba houssemba requested a review from jzheaux June 5, 2022 14:48
@jzheaux jzheaux merged commit f4049c1 into spring-projects:main Jun 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: saml2 An issue in SAML2 modules status: duplicate A duplicate of another issue type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OpenSaml4AuthenticationRequestResolver should have a customizable URI
3 participants