/oauth/token
endpoint on the authorization server using an mTLS connection, the resulting access token contains information that the resource server uses to verify that the client’s TLS certificate matches that of the access token.
cname-api-key
as per the custom domains functionality.
https://<custom-domain>/.well-known/openid-configuration
A successful response returns the OIDC discovery document, or a JSON object listing the authorization server’s properties and endpoints, including those related to mTLS.
If mTLS client authentication is enabled, the OIDC discovery document includes the token_endpoint_auth_methods_supported
property, which contains either tls_client_auth
or self_signed_tls_client_auth
:
tls_client_certificate_bound_access_tokens
property to true:
mtls_endpoint_aliases
, that contains a list of endpoints that support mTLS. For clients that support mTLS, the endpoints listed under mtls_endpoint_aliases
take precedence over the same endpoints exposed outside of mtls_endpoint_aliases
.
In the following code sample, the token_endpoint
property is exposed twice. The endpoint to use for mTLS calls is listed under mtls_endpoint_aliases
, or https://mtls.auth.bank.com/oauth/token
:
mtls_endpoint_aliases
, use the same endpoint listed outside of mtls_endpoint_aliases
. In the example above, pushed_authorization_request_endpoint
is not listed under mtls_endpoint_aliases
. As a result, use the pushed_authorization_request_endpoint
exposed outside of mtls_endpoint_aliases
, or https://auth.bank.com/oauth/par
.
For more information, see RFC 8705’s section on endpoint aliases.
tls_client_certificate_bound_access_tokens
property.
When the client calls the resource server with a mTLS-bound access token, the resource server requests a mTLS certificate from the client during the TLS handshake. The resource server should reject requests with an access token that does not match that client certificate with a 401 HTTP status code and an invalid_token
error code. To learn more, read Configure Resource Server for Sender Constraining.