Class StepUpProtocolChainCustomizer
java.lang.Object
com.irurueta.authserver.authorization.api.web.mfa.StepUpProtocolChainCustomizer
- All Implemented Interfaces:
ProtocolChainCustomizer
Applies step-up authentication (
acr_values and max_age) to /oauth2/authorize. It adds a
StepUpAuthorizationRequestConverter before the framework's converters, so it does not touch the
authentication validator installed by MfaProtocolChainCustomizer (a validator is a setter: the last one
installed would win). Its refusals are answered by the endpoint's SecondFactorErrorResponseHandler.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.springframework.security.web.authentication.AuthenticationConverterConverter that vetoes the requests whose step-up parameters the session does not satisfy. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcustomize(org.springframework.security.config.annotation.web.configurers.oauth2.server.authorization.OAuth2AuthorizationServerConfigurer server) Customizes the authorization endpoint.
-
Field Details
-
stepUpConverter
private final org.springframework.security.web.authentication.AuthenticationConverter stepUpConverterConverter that vetoes the requests whose step-up parameters the session does not satisfy.
-
-
Constructor Details
-
StepUpProtocolChainCustomizer
public StepUpProtocolChainCustomizer()
-
-
Method Details
-
customize
public void customize(org.springframework.security.config.annotation.web.configurers.oauth2.server.authorization.OAuth2AuthorizationServerConfigurer server) Customizes the authorization endpoint.- Specified by:
customizein interfaceProtocolChainCustomizer- Parameters:
server- configurer of the authorization server.
-