Secure Client Authentication with Authorization Code flow #581
|
Hi, my conformance report is giving me a warning for a client which is configured with authorization code flow Consider migrating to private_key_jwt or mTLS authentication for enhanced security. Client uses shared secret authentication. OAuth 2.1 recommends private_key_jwt or mTLS for confidential clients. Is there any documentation on how to setup the above with mTLS? I can only see documentation for adding client certificates to API calls. |
Replies: 1 comment 1 reply
|
We currently indeed only have documentation showing how to configure mTLS for native clients, including a sample implementation. In an ASP.NET Core client, adding mTLS support involves a few steps, since ASP.NET Core's default OIDC authentication handler implementation doesn't know how to switch to mTLS.
IdentityServer will then also issue access tokens that are bound to the certificate: a That said, using private_key_jwt for client authentication and DPoP for proof-of-possession are easier to achieve in ASP.NET Core. Here's a sample showcasing private_key_jwt client assertions. |
We currently indeed only have documentation showing how to configure mTLS for native clients, including a sample implementation.
In an ASP.NET Core client, adding mTLS support involves a few steps, since ASP.NET Core's default OIDC authentication handler implementation doesn't know how to switch to mTLS.
Configure the
OpenIdConnectOptions.BackchannelHttpHandlerto use a client certificate, for example: