Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Added a simple caching feature for access tokens #31

Closed
wants to merge 4 commits into from

Conversation

pacificcode
Copy link
Contributor


name: Access token caching feature
about: Added a simple caching feature for access tokens

Pull request checklist

Please check if your PR fulfills the following requirements:

  • [√ ] You have read the contributing guide
  • [ √] Tests for the changes have been added
  • [√ ] The documentation has been reviewed and updated as needed

What is the current behavior?

Please describe the current behavior that you are modifying, and link its a relevant issue
Request for access token to made prior to every request for a secret

Issue Number: Add the issue number this PR address here.
https://thycotic.visualstudio.com/Delinea.Work/_workitems/edit/608727

What is the new behavior?

Access token is cached as an ENV variable. Expiration is based on ExpiresIn attribute received with the access token i.e.
ExpiresIn * .9 = cache expiration time

Does this introduce a breaking change?

  • Yes
  • [ √] No

If yes, please describe...

Other relevant information

e.g. does this PR require another PR to be merged first?
No

@delinea-sagar
Copy link
Member

@pacificcode I will verify the caching functionality on my end.

go.mod Outdated Show resolved Hide resolved
Signed-off-by: Bill Hamilton <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants