Skip to content
This repository was archived by the owner on Dec 24, 2020. It is now read-only.

Commit f22bb1e

Browse files
committed
Incorporate the changes committed in the release branch
2 parents 0ce9d9b + add08fb commit f22bb1e

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/AspNet.Security.OAuth.Introspection/OAuthIntrospectionConstants.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ public static class Claims {
1111
public const string Audience = "aud";
1212
public const string ExpiresAt = "exp";
1313
public const string IssuedAt = "iat";
14+
public const string JwtId = "jti";
1415
public const string NotBefore = "nbf";
1516
public const string Scope = "scope";
1617
public const string Subject = "sub";
17-
public const string TokenId = "jti";
1818
public const string TokenType = "token_type";
1919
public const string Username = "username";
2020
}

src/AspNet.Security.OAuth.Introspection/OAuthIntrospectionHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ protected virtual async Task<AuthenticationTicket> CreateTicketAsync(string toke
287287
}
288288

289289
// Add the token identifier as a property on the authentication ticket.
290-
case OAuthIntrospectionConstants.Claims.TokenId: {
290+
case OAuthIntrospectionConstants.Claims.JwtId: {
291291
properties.Items[OAuthIntrospectionConstants.Properties.TicketId] = property.Value<string>();
292292

293293
continue;

src/Owin.Security.OAuth.Introspection/OAuthIntrospectionConstants.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ public static class Claims {
1111
public const string Audience = "aud";
1212
public const string ExpiresAt = "exp";
1313
public const string IssuedAt = "iat";
14+
public const string JwtId = "jti";
1415
public const string NotBefore = "nbf";
1516
public const string Scope = "scope";
1617
public const string Subject = "sub";
17-
public const string TokenId = "jti";
1818
public const string TokenType = "token_type";
1919
public const string Username = "username";
2020
}

src/Owin.Security.OAuth.Introspection/OAuthIntrospectionHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ protected virtual async Task<AuthenticationTicket> CreateTicketAsync(string toke
277277
}
278278

279279
// Add the token identifier as a property on the authentication ticket.
280-
case OAuthIntrospectionConstants.Claims.TokenId: {
280+
case OAuthIntrospectionConstants.Claims.JwtId: {
281281
properties.Dictionary[OAuthIntrospectionConstants.Properties.TicketId] = property.Value<string>();
282282

283283
continue;

0 commit comments

Comments
 (0)