|
|
|
@ -597,7 +597,7 @@ public static partial class OpenIddictClientHandlers |
|
|
|
Debug.Assert(context.Principal is { Identity: ClaimsIdentity }, SR.GetResourceString(SR.ID4006)); |
|
|
|
|
|
|
|
var date = context.Principal.GetExpirationDate(); |
|
|
|
if (date.HasValue && date.Value < DateTimeOffset.UtcNow) |
|
|
|
if (date.HasValue && date.Value.Add(context.TokenValidationParameters.ClockSkew) < DateTimeOffset.UtcNow) |
|
|
|
{ |
|
|
|
context.Reject( |
|
|
|
error: Errors.InvalidToken, |
|
|
|
|