Class LegacyImplicitProtocolChainCustomizer

java.lang.Object
com.irurueta.authserver.authorization.api.web.implicit.LegacyImplicitProtocolChainCustomizer
All Implemented Interfaces:
ProtocolChainCustomizer

public class LegacyImplicitProtocolChainCustomizer extends Object implements ProtocolChainCustomizer
Adds the legacy implicit flow to the authorization endpoint: its converter first, its provider first and its response handler in place of the framework's (which it delegates to for an authorization code).
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final org.springframework.security.web.authentication.AuthenticationConverter
    Reads a request with response_type=token.
    static final int
    Order of the customizer, after the client authentication one (3).
    private final org.springframework.security.authentication.AuthenticationProvider
    Grants the request.
    private final org.springframework.security.web.authentication.AuthenticationSuccessHandler
    Redirects with the token in the fragment.
  • 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

    • ORDER

      public static final int ORDER
      Order of the customizer, after the client authentication one (3).
      See Also:
    • converter

      private final org.springframework.security.web.authentication.AuthenticationConverter converter
      Reads a request with response_type=token.
    • provider

      private final org.springframework.security.authentication.AuthenticationProvider provider
      Grants the request.
    • responseHandler

      private final org.springframework.security.web.authentication.AuthenticationSuccessHandler responseHandler
      Redirects with the token in the fragment.
  • Constructor Details

    • LegacyImplicitProtocolChainCustomizer

      public LegacyImplicitProtocolChainCustomizer()
  • 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.