You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It should be easier to configure the authoritiesExtractor, authoritiesMapper and responseTimeValidationSkew on the OpenSamlAuthenticationProvider.
See gh-7642.
Allowing an authenticationManagerResolver for SAML2 login will allow customizing the OpenSamlAuthenticationProvider.
@eleftherias I've been reviewing this, and implemented a possible solution in 1d71a62.
It does however become difficult to justify the use of a AuthenticationManagerResolver simply for the ability to configure setters on the authentication provider.
The AbstractAuthenticationFilterConfigurer calls setAuthenticationManager making the end result of the configuration less obvious.
I will continue reviewing this, but may opt to just make the authentication provider configurable, or the options on it, rather than adding a resolver.
@fhanik The idea with having the AuthenticationManagerResolver configurable is that it would support multi-tenancy in the future.
For now, we only need the ability to set the options on the provider.
I will leave it up to you to decide which option is best.
fhanik
added a commit
to fhanik/spring-security
that referenced
this issue
Dec 17, 2019
Changed indentation on saml2Login() snippets to align more closely
with surrounding documentation.
Also removed call to super.configure as this would enable formLogin as
well as httpBasic. Replaced with default endpoint authorization
statement.
Issue gh-7654
eleftherias
changed the title
Allow configuring authenticationManagerResolver for SAML2
Allow configuration of AuthenticationManager in saml2Login()
Jan 9, 2020
Summary
It should be easier to configure the
authoritiesExtractor
,authoritiesMapper
andresponseTimeValidationSkew
on theOpenSamlAuthenticationProvider
.See gh-7642.
Allowing an
authenticationManagerResolver
for SAML2 login will allow customizing theOpenSamlAuthenticationProvider
.This should be similar to OAuth2ResourceServerConfigurer.authenticationManagerResolver.
The text was updated successfully, but these errors were encountered: