The problem I am trying to solve:
- I am writing a desktop client app that will programmatically connect to Azure storages
- The app will be run by multiple stakeholders in the organization from their personal computers
- The storages contain sensitive information so I want to properly secure access- access should be based on AD, much like Azure CLI works.
- I have a working solution but the token I get expires in one hour.
- I want to provide a good UX. Requiring the user to interactively authenticate once an hour is unacceptable.
- As far as I know the standard way to deal with theses situations is by using the refresh token
- unfortunately, the refresh token is discarded by the InteractiveBrowserCredential.get_token method.
The solution I'd like
I would like the mechanism to allow me to refresh an expired token without bothering the user of the app.
Alternative I considered
override the get_token method and try to implement it myself by extracting relevant code. It would be hacky
The problem I am trying to solve:
The solution I'd like
I would like the mechanism to allow me to refresh an expired token without bothering the user of the app.
Alternative I considered
override the get_token method and try to implement it myself by extracting relevant code. It would be hacky