File tree 3 files changed +25
-2
lines changed
src/IdentityModel/Client/Messages
3 files changed +25
-2
lines changed Original file line number Diff line number Diff line change @@ -254,6 +254,13 @@ protected override Task InitializeAsync(object? initializationData = null)
254
254
/// </value>
255
255
public IEnumerable < string > TokenEndpointAuthenticationMethodsSupported => TryGetStringArray ( OidcConstants . Discovery . TokenEndpointAuthenticationMethodsSupported ) ;
256
256
257
+ /// <summary>
258
+ /// Gets the signing algorithms supported by the token endpoint for the signature on the JWT used to authenticate
259
+ /// the client at the token endpoint for the "private_key_jwt" and "client_secret_jwt" authentication methods.
260
+ /// </summary>
261
+ public IEnumerable < string > TokenEndpointAuthenticationSigningAlgorithmsSupported => [ ] ;
262
+
263
+
257
264
/// <summary>
258
265
/// Gets the supported backchannel token delivery modes.
259
266
/// </summary>
Original file line number Diff line number Diff line change @@ -306,6 +306,18 @@ public async Task Strongly_typed_accessors_should_behave_as_expected()
306
306
claims . ShouldContain ( "phone_number" ) ;
307
307
claims . ShouldContain ( "phone_number_verified" ) ;
308
308
309
+ // Token Authentication Methods
310
+ var tokenEndpointAuthMethods = disco . TokenEndpointAuthenticationMethodsSupported . ToList ( ) ;
311
+ tokenEndpointAuthMethods . Count . ShouldBe ( 3 ) ;
312
+ tokenEndpointAuthMethods . ShouldContain ( "client_secret_post" ) ;
313
+ tokenEndpointAuthMethods . ShouldContain ( "client_secret_basic" ) ;
314
+ tokenEndpointAuthMethods . ShouldContain ( "private_key_jwt" ) ;
315
+
316
+ // Token Authentication Signing Algorithms for private_key_jwt
317
+ var tokenEndpointAuthSigningAlgorithms = disco . TokenEndpointAuthenticationSigningAlgorithmsSupported . ToList ( ) ;
318
+ tokenEndpointAuthSigningAlgorithms . Count . ShouldBe ( 1 ) ;
319
+ tokenEndpointAuthSigningAlgorithms . ShouldContain ( "RS256" ) ;
320
+
309
321
// JWKS data
310
322
disco . KeySet . Keys . Count . ShouldBe ( 1 ) ;
311
323
disco . KeySet . Keys . First ( ) . Kid . ShouldBe ( "a3rMUgMFv9tPclLa6yF3zAkfquE" ) ;
Original file line number Diff line number Diff line change 79
79
],
80
80
"token_endpoint_auth_methods_supported" : [
81
81
" client_secret_post" ,
82
- " client_secret_basic"
82
+ " client_secret_basic" ,
83
+ " private_key_jwt"
84
+ ],
85
+ "token_endpoint_auth_signing_alg_values_supported" : [
86
+ " RS256"
83
87
],
84
88
"require_pushed_authorization_requests" : true
85
- }
89
+ }
You can’t perform that action at this time.
0 commit comments