Class MfaLoginChainCustomizer

java.lang.Object
com.irurueta.authserver.authorization.api.web.mfa.MfaLoginChainCustomizer
All Implemented Interfaces:
LoginChainCustomizer

public class MfaLoginChainCustomizer extends Object implements 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 Details

    • authorizationManager

      private final MfaAuthorizationManager authorizationManager
      Manager that applies the policy.
    • factorRegistry

      private final AuthenticationFactorRegistry factorRegistry
      Registry of the known factors.
    • secondFactorEntryPoint

      private final org.springframework.security.web.AuthenticationEntryPoint secondFactorEntryPoint
      Entry 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:
      customize in interface LoginChainCustomizer
      Parameters:
      http - security builder of the chain.