Skip to content

get_accounts() will group equivalent accounts and return the merged result #349

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

Merged
merged 1 commit into from
Apr 16, 2021

Conversation

rayluo
Copy link
Collaborator

@rayluo rayluo commented Apr 13, 2021

This way, the caller of get_accounts(...) (which is typically downstream application's account picker) would no longer need to choose among multiple equivalent accounts. This change is functionally equivalent in terms of the subsequent acquire_token_silent(..., account=account) call.

CC: @jiasli @chlowell

@rayluo rayluo changed the title Group accounts by home_account_id, and keep same return format get_accounts() will group equivalent accounts and return the merged result Apr 13, 2021
@rayluo rayluo force-pushed the return-grouped-accounts branch from 229e8b8 to e65731e Compare April 14, 2021 05:48
@jiasli
Copy link
Contributor

jiasli commented Apr 14, 2021

Tested with latest Azure CLI. Works like a charm!

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

Successfully merging this pull request may close these issues.

2 participants