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

TokenCache.dat not created in profile initialization #4144

Closed
2 tasks done
markcowl opened this issue Jun 17, 2017 · 1 comment
Closed
2 tasks done

TokenCache.dat not created in profile initialization #4144

markcowl opened this issue Jun 17, 2017 · 1 comment
Assignees
Milestone

Comments

@markcowl
Copy link
Member

markcowl commented Jun 17, 2017

Description

When there is no TokenCache.dat file, we do not create a new one at profile initialization, because we create a cache using data of zero length. Instead we need to initialize the TokenCacheData with a default TokenCache here: https://github.com/Azure/azure-powershell/blob/preview/src/Common/Commands.Common.Authentication/AzureSessionInitializer.cs#L62

  • Update AzureSessionInitializer to initialize the token cache with the default token cache contents rather than empty contents when the token cache file does not exist
  • Add a test with a non-existent TokenCache that verifies correct TokenCache creation in AzureSessionInitializer

Cost: 2

@markcowl
Copy link
Member Author

Fixed. Will ship in next release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant