-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
authn: Support IdPs that backdate their "iat" claim in id tokens
The backdating must be a fixed duration, which is what I've observed with Azure AD (300s) and other IdPs. Backdating is sometimes applied to be more lenient with clients that have a slow clock (i.e. who otherwise might see a correct iat as in the future and reject the token). Without accounting for backdating, our staleBefore marker can cause a temporary deauthentication and repeated renewal attempts as token renewal requests "work" but produce a token with an iat that's still older than the staleBefore.
- Loading branch information
Showing
2 changed files
with
16 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters