Class StepUpProtocolChainCustomizer

java.lang.Object
com.irurueta.authserver.authorization.api.web.mfa.StepUpProtocolChainCustomizer
All Implemented Interfaces:
ProtocolChainCustomizer

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

    Fields
    Modifier and Type
    Field
    Description
    private final org.springframework.security.web.authentication.AuthenticationConverter
    Converter that vetoes the requests whose step-up parameters the session does not satisfy.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    customize(org.springframework.security.config.annotation.web.configurers.oauth2.server.authorization.OAuth2AuthorizationServerConfigurer server)
    Customizes the authorization endpoint.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • stepUpConverter

      private final org.springframework.security.web.authentication.AuthenticationConverter stepUpConverter
      Converter 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:
      customize in interface ProtocolChainCustomizer
      Parameters:
      server - configurer of the authorization server.