Skip to content

Commit

Permalink
Increase ID Token acceptable iat clock skew to +/- 10min
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamDenniss committed Jul 7, 2018
1 parent b9d3ce7 commit d6ff5a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/OIDAuthorizationService.m
Original file line number Diff line number Diff line change
Expand Up @@ -473,9 +473,9 @@ + (void)performTokenRequest:(OIDTokenRequest *)request
}

// OpenID Connect Core Section 3.1.3.7. rule #10
// Validates that the issued at time is not more than +/- 5 minutes on the current time.
// Validates that the issued at time is not more than +/- 10 minutes on the current time.
NSTimeInterval issuedAtDifference = [idToken.issuedAt timeIntervalSinceNow];
if (fabs(issuedAtDifference) > 300) {
if (fabs(issuedAtDifference) > 600) {
NSError *invalidIDToken =
[OIDErrorUtilities errorWithCode:OIDErrorCodeIDTokenFailedValidationError
underlyingError:nil
Expand Down

0 comments on commit d6ff5a1

Please sign in to comment.