-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
SAML 2.0 Login should allow loginProcessingUrl
without {registrationId}
when providing an AuthenticationConverter
#10176
Comments
Hi @sathishkumar294, thanks for reaching out. The When the request comes in, we already know which registration it is referring to since we have the variable in the URL. I am closing this but feel free to continue the discussion. |
HI @marcusdacoregio thanks for your explanation. I agree with your answer considering how it will be really beneficial to new software solutions. Thanks. |
Hi @sathishkumar294. I was talking with the team, and the Do you mind if I change the title of this issue to SAML 2.0 Login should allow |
filterProcessingUrl
without {registrationId}
when providing an AuthenticationConverter
filterProcessingUrl
without {registrationId}
when providing an AuthenticationConverter
loginProcessingUrl
without {registrationId}
when providing an AuthenticationConverter
As a workaround, you can use the http
.csrf((csrf) -> csrf.ignoringRequestMatchers(new AntPathRequestMatcher("/login/saml2/sso"))) // If using POST-binding
.saml2Login((saml2) -> saml2
.authenticationConverter(myAuthenticationConverter)
.withObjectPostProcessor(new ObjectPostProcessor<Saml2WebSsoAuthenticationFilter>() {
@Override
public<O extends Saml2WebSsoAuthenticationFilter> O postProcess(O object) {
object.setFilterProcessesUrl("/login/saml2/sso");
return object;
}
})
) Remember that you have to provide the |
Thanks, I will try this recommendation and update here. |
Fixed via 816e847 |
spring-security/config/src/main/java/org/springframework/security/config/annotation/web/configurers/saml2/Saml2LoginConfigurer.java
Line 181 in 662ab10
Since we are allowed to use a custom
assertionConsumerLocation
when registering a relying party, I do not understand why theloginProcessingUrl
should contain the{registrationId}
?The text was updated successfully, but these errors were encountered: