Class ClientAuthProtocolChainCustomizer
java.lang.Object
com.irurueta.authserver.authorization.api.web.clientauth.ClientAuthProtocolChainCustomizer
- All Implemented Interfaces:
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 Summary
FieldsModifier and TypeFieldDescriptionprivate final ClientCertificateVerifierVerifies the client certificates.private final RegisteredJwksClientAssertionDecoderFactoryCreates the decoders of the client assertions.private final MtlsEndpointAliasesBuilds themtls_endpoint_aliasesclaim.static final intOrder of the customizer: after the multi-factor, step-up and device ones. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidSets the decoder factory and the certificate verifier on the framework's providers.voidcustomize(org.springframework.security.config.annotation.web.configurers.oauth2.server.authorization.OAuth2AuthorizationServerConfigurer server) Customizes the client authentication and the metadata.
-
Field Details
-
ORDER
public static final int ORDEROrder of the customizer: after the multi-factor, step-up and device ones.- See Also:
-
decoderFactory
Creates the decoders of the client assertions. -
certificateVerifier
Verifies the client certificates. -
endpointAliases
Builds themtls_endpoint_aliasesclaim.
-
-
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:
customizein interfaceProtocolChainCustomizer- 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.
-