Skip to content

Commit

Permalink
deleted expiration check in IdToken.java
Browse files Browse the repository at this point in the history
  • Loading branch information
SayazhanBos committed Mar 4, 2024
1 parent c6137b7 commit fc92bed
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions library/java/net/openid/appauth/IdToken.java
Original file line number Diff line number Diff line change
Expand Up @@ -271,10 +271,10 @@ void validate(@NonNull TokenRequest tokenRequest,
// OpenID Connect Core Section 3.1.3.7. rule #9
// Validates that the current time is before the expiry time.
Long nowInSeconds = clock.getCurrentTimeMillis() / MILLIS_PER_SECOND;
if (nowInSeconds > this.expiration) {
throw AuthorizationException.fromTemplate(GeneralErrors.ID_TOKEN_VALIDATION_ERROR,
new IdTokenException("ID Token expired"));
}
// if (nowInSeconds > this.expiration) {
// throw AuthorizationException.fromTemplate(GeneralErrors.ID_TOKEN_VALIDATION_ERROR,
// new IdTokenException("ID Token expired"));
// }

// OpenID Connect Core Section 3.1.3.7. rule #10
// Validates that the issued at time is not more than +/- 10 minutes on the current
Expand Down

0 comments on commit fc92bed

Please sign in to comment.