forked from arrikto/oidc-authservice
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cache: Add caching mechanism for bearer tokens
Here we introduce a caching mechanism for bearer tokens. AuthService will use this cache to avoid authenticating freshly authenticated Bearer Tokens over and over again. We also add the CACHE_ENABLED envvar. This envvar offers the following utility: * false: disable the caching mechanism (default) * true: enable the caching mechanism To set the parameters of the cache we introduce: * CACHE_EXPIRATION_MINUTES: the amount of time (minutes) after which each cached Bearer Token is considered expired. GitHub-PR: arrikto#87 Signed-off-by: Athanasios Markou <[email protected]> Reviewed-by: Ioannis Bouloumpasis <[email protected]>
- Loading branch information
1 parent
5f8bb0d
commit c46caed
Showing
7 changed files
with
87 additions
and
0 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
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
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