Skip to content

Conversation

@jiasli
Copy link
Member

@jiasli jiasli commented Jun 4, 2020

Description
Fix regression introduced in #13567. Use MSAL-style authority to build the PublicClientApplication.

Testing Guide

az login
az logout

return self._msal_app.get_accounts(user_or_sp)
except ValueError:
pass
accounts = self._msal_app.get_accounts(user_or_sp)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why remove the try-catch? it throws an exception if the user does not exist which is not handled in the logout function

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ValueError is thrown due to the incorrect authority given to PublicClientApplication. If the username is not found, [] will be return.

@yonzhan yonzhan added this to the S171 milestone Jun 4, 2020
@yonzhan
Copy link
Collaborator

yonzhan commented Jun 4, 2020

add to S171

@jiasli jiasli merged commit c3f01e1 into Azure:identity Jun 4, 2020
@jiasli jiasli deleted the logout branch June 4, 2020 07:30
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

Successfully merging this pull request may close these issues.

3 participants