-
Notifications
You must be signed in to change notification settings - Fork 81
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
Browser sign in w/ out using SFAuthenticationSession or ASWebAuthenticationSession #181
Comments
Hi @nodediggity , Unfortunately these alerts are shown by
Please let me know if workaround works for you Ildar |
Thanks for coming back to me on this @IldarAbdullin-okta - I did some investigation myself also and I see now why it behaves this way. Appreciate your input 👍 |
How to solve this sign in text on sign out alert, please help I stuck at this. Thanks in advance. |
Another approach to avoid the alert is forking Be aware, the authentication session (cookies, browsing data) won't be shared with user browser. For more details, read Apple' documentation. Note, it's just a workaround but not something we recommend to do. |
For other people that stumble across this issue, there's no need to fork the code as this has been integrated into the codebase with the Side note: To me, |
When using
SFAuthenticationSession
orASWebAuthenticationSession
the user is currently prompted to give consent every time the window is presented.The leads to a scenario as follows:
User clicks Sign In and is presented with a
UIAlert
asking their consent to Sign InAt some point the user opts to Sign Out and again is presented with a
UIAlert
asking their consent to Sign InThis makes zero sense to the user at this point, the user is signed in, trying to sign out and is being prompted to give their consent to sign in - so they may be signed out 🤯.
Is it possible at to use this flow without either
SFAuthenticationSession
orASWebAuthenticationSession
?This flow does not feel correct at all from a UX perspective, the constant prompts and system dialog presented by SFAuthentication/ASWebAuthenticationSession is going to be confusing to say the least as a user opting to sign out is presented with a pop up advising them they are signing in and their details are going to be shared.
I understand this behaviour is driven by SFAuthentication/ASWebAuthenticationSession so I would like to handle this myself, perhaps via a
WKWebView
.This behaviour is present within the browser-sign-in sample app.
The text was updated successfully, but these errors were encountered: