Closed cbiesinger closed 5 months ago
Interested in any thoughts on these options. (@bvandersloot-mozilla maybe?)
I was imagining the IDP to get a Promise when it calls IDP.login() that resolves when the user closes the dialog. Then it is the IDP's responsibility to close it, presumably with window.close(). Or is this a different signin dialog?
I'm not sure that's workable... 1) that does not work if the IDP uses the header, and 2) I think that login flows will typically be across multiple pages
Sorry, I misunderstood. Yes that will work, if we make window.close() work for this dialog
We have introduced IdentityProvider.close() for this purpose. Closing for now.
The IDP signin status API expects to show a IDP signin dialog popup of some kind. The question is how to close this dialog once the user is done.
We can not close this dialog once we receive this header because the signin flow may not be done yet -- there may be interstitials such as verifying your phone number is up-to-date, etc.
Options: