Package com.irurueta.authserver.authorization.api.web.clientauth


package com.irurueta.authserver.authorization.api.web.clientauth
Client authentication at the token endpoints beyond a shared secret: private_key_jwt with replay protection (RFC 7523) and mutual TLS, tls_client_auth and self_signed_tls_client_auth (RFC 8705).
  • Class
    Description
    Scheduled entry point that deletes the identifiers of the client assertions that already expired.
    Wires the client authentication methods private_key_jwt (with replay protection) and mutual TLS into the protocol chain.
    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.
    Verifies the certificate a client presented on the TLS port (RFC 8705), replacing the framework's verifier, which has no trust anchors of its own.
    Builds the mtls_endpoint_aliases metadata claim of RFC 8705 (section 5): the addresses of the endpoints that authenticate clients on the dedicated TLS port, the issuer's host with authserver.x509.port.
    Configuration of the mutual-TLS client authentication (authserver.mtls.*, RFC 8705).
    The certificate authorities trusted for tls_client_auth, loaded once at startup.
    Creates the decoder of the client assertions of a client.
    Validates what the framework's default assertion validators leave out: the assertion must carry a jti, an iat no later than now (within the same clock skew the framework's timestamp validator allows) and an exp no more than the configured maximum lifetime after it, so a future iat cannot stretch the window, and its jti must not have been used before by the same client (RFC 7523, section 3).
    Reads the PEM files of the trusted certificate authorities into trust anchors.