Closed riccardo-forina closed 5 years ago
PR Storybook available here
This changes the OAuth login to open in a pop-up, should we worry about pop-up blockers?
The eventuality is trapped and a relative toast is displayed to the user explaining what’s happening. That said, we are opening a pop up as a direct and sole consequence of an user action, pointing to well known domains. I think the risk is quite remote.
PR Storybook available here
PR Storybook available here
@dongniwang the OAuth flow is slightly different than before, instead of redirecting the user to the 3rd party to eventually get back to Syndesis, the 3rd party authorization will happen in a popup. Advantages:
Cons:
This is the error condition I'm talking about.
PR Storybook available here
I think this can be reviewed. Better handle the details page in another PR so to enable QA to do their thing.
Thanks for the update @riccardo-forina !
PR Storybook available here
Check the gif in the description, you can see the pop up there. Anyway, it will show a link asking to close the window, and that it will close automatically after 5s. And no, popup and messages are all the same for all the oauth connectors
Pull request approved by @gashcrumb - applying approved label
What would happen if the OAuth didn't go as planned? Do we have a toast notification or inline notification - assuming users would stay on step 2 - for that?
It depends on when the flow broke, if it was on the 3rd party page we have no control over that, it it was on the end of the flow the popup will close and a toast error notification with the error message will be displayed
Epic work, thank you @riccardo-forina :+1:
This is implemented up to the redirect back from the server.
Changes
Todo
Issues