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

fix: Added retry logic to OneAuth login flows when an interactive sign in is required #6467

Merged
merged 10 commits into from
Mar 23, 2021

Conversation

tonyanziano
Copy link
Contributor

Description

There was retry logic for the OneAuth getAccessToken() flow, but it was trying to catch the InteractionRequired error in the wrong place. A login error actually throws, which ends up in the catch 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

@coveralls
Copy link

coveralls commented Mar 18, 2021

Coverage Status

Coverage increased (+0.02%) to 52.792% when pulling 7cc7d85 on toanzian/login-retry into 3afb128 on main.

@ehsan2018
Copy link

ehsan2018 commented Apr 8, 2021

Hello, I am having a similar issue upon publishing a bot from composer V1.4.
As soon as I sign in with my Azure credential I receive an error. Would you please provide a plain language instruction as I am not a developer and have a hard time following technical terms. Thank you.
2
1

@a-b-r-o-w-n
Copy link
Contributor

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
Copy link

ehsan2018 commented Apr 8, 2021

Thank you for your quick reply. I do not see the 'early adopters' under the setting page. However, it seems my application is up to date as I clicked on help/ check for update (please see below). Also, I am currently using a free subscription. Thank you.

image

image

image

@a-b-r-o-w-n
Copy link
Contributor

@ehsan2018 check on the application settings page (the gear icon on the bottom left).

@cwhitten cwhitten mentioned this pull request May 20, 2021
lei9444 pushed a commit to lei9444/BotFramework-Composer-1 that referenced this pull request Jun 15, 2021
…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]>
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.

Publishing 1.3.0 to Web App hangs after logging in
5 participants