-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OAuth2: avoid constant token refreshing if the expiration delay is < …
…2 minutes Currently we refresh the token 2 minutes befores its theoretical expiration. But if using default Keycloack configuration, the refresh delay is 60 seconds. Which means we refresh the token for every network request. So for such short delays, only refresh when the remaining validity time is below 10% of the initial expiration delay. (cherry picked from commit a8af06f)
- Loading branch information
1 parent
33d079e
commit d7c1ccb
Showing
3 changed files
with
27 additions
and
1 deletion.
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
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