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

msauth: improvement for token cache store handling #20

Merged
merged 3 commits into from
Jun 27, 2020

Conversation

yaegashi
Copy link
Owner

  • Fix bug that fails to save a refreshed token in DeviceAuthorizationGrant()
  • Token cache dirty state control, save cache to file only when it's updated
  • Network location support for token cache store (Azure Blob Storage URL with SAS assumed)

yaegashi added 3 commits June 27, 2020 16:34
- CacheKey(): new function
- Manager
  - Dirty: cache dirty state
  - GetToken/PutToken(): new methods (Cache method is removed)
  - LoadFile()/SaveFile(): load/save with dirty state control
  - DeviceAuthorizationGrant(): save updated token correctly
- ReadLocation()/WriteLocation(): new functions
- Manager
  - LoadFile()/SaveFile()/SaveFileAlways(): updated
@yaegashi yaegashi force-pushed the msauth-token-cache branch from d0a4b82 to aeb63b9 Compare June 27, 2020 07:35
@yaegashi yaegashi merged commit 93fc163 into master Jun 27, 2020
@yaegashi yaegashi deleted the msauth-token-cache branch June 27, 2020 07:47
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.

1 participant