Class MfaLoginChainCustomizer
java.lang.Object
com.irurueta.authserver.authorization.api.web.mfa.MfaLoginChainCustomizer
- All Implemented Interfaces:
LoginChainCustomizer
Applies the multi-factor policy to the login/UI chain: the consent page needs the factors the policy asks for, and a
user who lacks a registered second factor is sent to the second-factor page instead of getting a 403.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final MfaAuthorizationManagerManager that applies the policy.private final AuthenticationFactorRegistryRegistry of the known factors.private final org.springframework.security.web.AuthenticationEntryPointEntry point that sends the user to the second-factor page. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcustomize(org.springframework.security.config.annotation.web.builders.HttpSecurity http) Customizes the login/UI chain.
-
Field Details
-
authorizationManager
Manager that applies the policy. -
factorRegistry
Registry of the known factors. -
secondFactorEntryPoint
private final org.springframework.security.web.AuthenticationEntryPoint secondFactorEntryPointEntry point that sends the user to the second-factor page.
-
-
Constructor Details
-
MfaLoginChainCustomizer
public MfaLoginChainCustomizer()
-
-
Method Details
-
customize
public void customize(org.springframework.security.config.annotation.web.builders.HttpSecurity http) Customizes the login/UI chain.- Specified by:
customizein interfaceLoginChainCustomizer- Parameters:
http- security builder of the chain.
-