This repository was archived by the owner on Sep 8, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
src/IdentityModel.AspNetCore.OAuth2Introspection Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ private async Task<IntrospectionResponse> LoadClaimsForToken(string token)
144
144
return await introspectionClient . SendAsync ( new IntrospectionRequest
145
145
{
146
146
Token = token ,
147
- TokenTypeHint = OidcConstants . TokenTypes . AccessToken ,
147
+ TokenTypeHint = Options . TokenTypeHint ,
148
148
ClientId = Options . ClientId ,
149
149
ClientSecret = Options . ClientSecret
150
150
} ) . ConfigureAwait ( false ) ;
Original file line number Diff line number Diff line change 9
9
using IdentityModel . Client ;
10
10
using IdentityModel . AspNetCore . OAuth2Introspection . Infrastructure ;
11
11
using System . Collections . Concurrent ;
12
+ using IdentityModel ;
12
13
13
14
namespace Microsoft . AspNetCore . Builder
14
15
{
@@ -39,6 +40,11 @@ public class OAuth2IntrospectionOptions : AuthenticationSchemeOptions
39
40
/// </summary>
40
41
public string ClientSecret { get ; set ; }
41
42
43
+ /// <summary>
44
+ /// Specifies the token type hint of the introspection client.
45
+ /// </summary>
46
+ public string TokenTypeHint { get ; set ; } = OidcConstants . TokenTypes . AccessToken ;
47
+
42
48
/// <summary>
43
49
/// Specifies the claim type to use for the name claim (defaults to 'name')
44
50
/// </summary>
You can’t perform that action at this time.
0 commit comments