-
Notifications
You must be signed in to change notification settings - Fork 377
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
fix: Added retry logic to OneAuth login flows when an interactive sign in is required #6467
Conversation
hi @ehsan2018, could you try updating to the nightly version of Composer? We have been investing in this area and some improvements have been made that are not yet released. To do so, go to the settings page and check the box for early adopters in the application updates section. Then go to Help > Check for updates to get the latest. With that being said, we are still working through some authentication issues, especially for users that are in multiple azure tenants, but hopefully you will be unblocked by using the latest version. |
@ehsan2018 check on the application settings page (the gear icon on the bottom left). |
…n in is required (microsoft#6467) * Added interactive retry logic to ARM login flow * Added more verbose logging * Fixed retry to use a constant instead of undefined enum * Fixed oneauth retry logic * Reverted custom version * Added comments specifying the source of some OneAuth types Co-authored-by: Andy Brown <[email protected]>
Description
There was retry logic for the OneAuth
getAccessToken()
flow, but it was trying to catch theInteractionRequired
error in the wrong place. A login error actually throws, which ends up in thecatch
block.Moved retry logic to the
catch
block, and also added it to the ARM login flow.Task Item
This potentially fixes the issue we were seeing with Non-federated accounts:
Fixes #5436