cricketthomas / AzureKeyVaultExplorer

Azure Key Vault Explorer — a cross platform GUI desktop application for aggregating secrets, keys and certificates in azure key vault by subscription and resource group. Use azure key vault as an enterprise password manager.
https://keyvaultexplorer.sidesteplabs.us
MIT License
5 stars 0 forks source link

Add saving/caching of refresh token to login currently authenticated users #2

Closed cricketthomas closed 11 months ago

cricketthomas commented 1 year ago

Right now we sign in, get a token for a scope, with code and refresh token but the refresh token isn't saved or being used to reauth and with fresh access token and refresh token. Create a method to cache them in preferences or secure storage and check for a refresh token instead of re-prompting the user to login.

https://learn.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-auth-code-flow#refresh-the-access-token