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

Cache InteractiveBrowserCredential #8

Open
Michael-A-McMahon opened this issue Sep 12, 2023 · 0 comments
Open

Cache InteractiveBrowserCredential #8

Michael-A-McMahon opened this issue Sep 12, 2023 · 0 comments
Assignees

Comments

@Michael-A-McMahon
Copy link
Member

When using interactive authentication with Azure, login with a browser may be unnecessarily repeated. This happens when a parameter which is not related to authentication changes.

For example, an access token provider accepts a scope parameter. If two tokens are requested with two different scopes, but all other parameters are the same, the browser will open twice.

As an enhancement, providers can cache the InteractiveBrowserCredential object from the first login, and reuse it to request a token with a different scope. This would eliminate the second browser pop-up in the example.

@Michael-A-McMahon Michael-A-McMahon self-assigned this Sep 12, 2023
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

No branches or pull requests

1 participant