microsoft / vsts-authentication-library-for-java

Retrieve OAuth2 or Personal Accesss Tokens for Visual Studio Team Services (visualstudio.com) accounts. Also provides secure storage for those secrets on different platforms.
MIT License
18 stars 20 forks source link

Access token not returned on Windows Credential Manager with the TokenPair #38

Open desaiRahulS opened 3 years ago

desaiRahulS commented 3 years ago

Saving a TokenPair on the Windows Credential Manager seems to be partially working. When getting the pair, only the refresh token is returned with the value, but the access token is empty.

I also noticed that the test behavior is the same https://github.com/microsoft/vsts-authentication-library-for-java/blob/master/storage/src/test/java/com/microsoft/alm/storage/windows/CredManagerBackedTokenPairStoreIT.java#L41

Could you please explain why the access token is not stored/fetched on Windows when using TokenPair?

Thanks Rahul