1
0
mirror of synced 2026-08-05 09:47:05 +00:00

Make the loginProcessingUrl configurable for saml2Login()

Fixes gh-7565

https://github.com/spring-projects/spring-security/issues/7565
This commit is contained in:
Filip Hanik
2019-10-30 13:39:35 -07:00
parent 5f17032ffd
commit 0cafcf37e2
6 changed files with 126 additions and 8 deletions
@@ -164,7 +164,10 @@ public final class Saml2LoginConfigurer<B extends HttpSecurityBuilder<B>> extend
this.relyingPartyRegistrationRepository = getSharedOrBean(http, RelyingPartyRegistrationRepository.class);
}
Saml2WebSsoAuthenticationFilter webSsoFilter = new Saml2WebSsoAuthenticationFilter(this.relyingPartyRegistrationRepository);
Saml2WebSsoAuthenticationFilter webSsoFilter = new Saml2WebSsoAuthenticationFilter(
this.relyingPartyRegistrationRepository,
this.loginProcessingUrl
);
setAuthenticationFilter(webSsoFilter);
super.loginProcessingUrl(this.loginProcessingUrl);