You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- the existing code was trying indefinitely to ask for token until the user gets it right.
This is not a bad idea, however Toolbox has a couple of limitations that make the existing
approach almost unusable:
- the input dialog doesn't allow custom actions through which we can spawn a browser at login page.
The code always opened the login page when the token was wrong which ended up hammering the browser
with too many tabs.
- the token UI page can't be reused to request the login page (this one has a "Get token" action button)
because once the user clicks on the Get token to open the webpage, Toolbox closes the window and forgets
the last UI page that was visible.
- instead with this patch we ask the token from the user only once. If something goes wrong (mostly during login)
we show an error dialog and stop the flow.
0 commit comments