Class ClientAuthProtocolChainCustomizer

java.lang.Object
com.irurueta.authserver.authorization.api.web.clientauth.ClientAuthProtocolChainCustomizer
All Implemented Interfaces:
ProtocolChainCustomizer

public class ClientAuthProtocolChainCustomizer extends Object implements ProtocolChainCustomizer
Installs private_key_jwt with replay protection and the mutual-TLS client authentication in the protocol chain: the framework's assertion provider decodes with RegisteredJwksClientAssertionDecoderFactory, and its certificate provider verifies with ClientCertificateVerifier. The server metadata (the OpenID provider configuration and the OAuth 2.0 authorization server metadata) also advertises mtls_endpoint_aliases.
  • Field Details

  • Constructor Details

    • ClientAuthProtocolChainCustomizer

      public ClientAuthProtocolChainCustomizer()
  • Method Details

    • customize

      public void customize(org.springframework.security.config.annotation.web.configurers.oauth2.server.authorization.OAuth2AuthorizationServerConfigurer server)
      Customizes the client authentication and the metadata.
      Specified by:
      customize in interface ProtocolChainCustomizer
      Parameters:
      server - configurer of the authorization server.
    • configure

      private void configure(List<org.springframework.security.authentication.AuthenticationProvider> providers)
      Sets the decoder factory and the certificate verifier on the framework's providers.
      Parameters:
      providers - the providers of the client authentication.