Skip to content

Commit 248d5f7

Browse files
committed
Remove the TokenBindingCertificate property from ClientCredentialsAuthenticationRequest
1 parent a89b5c6 commit 248d5f7

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

src/OpenIddict.Client/OpenIddictClientModels.cs

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -426,23 +426,6 @@ public sealed record class ClientCredentialsAuthenticationRequest
426426
/// Gets the scopes that will be sent to the authorization server.
427427
/// </summary>
428428
public List<string>? Scopes { get; init; }
429-
430-
/// <summary>
431-
/// Gets or sets the X.509 client certificate used to bind the access and/or
432-
/// refresh tokens issued by the authorization server, if applicable.
433-
/// </summary>
434-
/// <remarks>
435-
/// <para>
436-
/// Note: when mTLs is also used for OAuth 2.0 client authentication, the
437-
/// certificate set here replaces the client certificate chosen by OpenIddict.
438-
/// </para>
439-
/// <para>
440-
/// Note: if a certificate-based client authentication or token binding method is
441-
/// negotiated, the type of the certificate must match the negotiated methods.
442-
/// </para>
443-
/// </remarks>
444-
[EditorBrowsable(EditorBrowsableState.Advanced)]
445-
public X509Certificate2? TokenBindingCertificate { get; init; }
446429
}
447430

448431
/// <summary>

src/OpenIddict.Client/OpenIddictClientService.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,6 @@ public async ValueTask<ClientCredentialsAuthenticationResult> AuthenticateWithCl
430430
Issuer = request.Issuer,
431431
ProviderName = request.ProviderName,
432432
RegistrationId = request.RegistrationId,
433-
TokenEndpointClientCertificate = request.TokenBindingCertificate,
434433
TokenRequest = request.AdditionalTokenRequestParameters
435434
is Dictionary<string, OpenIddictParameter> parameters ? new(parameters) : new()
436435
};

0 commit comments

Comments
 (0)