Skip to content

WebAuthenticator Opens external browser #160

Answered by dotMorten
ramtechjoe asked this question in Q&A
Discussion options

You must be logged in to vote

That's exactly how it's meant to work, and in accordance with the best practices.
In fact iOS and Android doesn't actually use a webview, but uses built-in oauth platform APIs that opens up a secure browser session, and prevents the app from seeing into that browser session and stealing credentials. In fact several OAuth services like Google and Facebook require that from iOS and Android clients and detects if it's a webview and blocks signing in. Unfortunately Microsoft hasn't ported the WebAuthenticationBroker from UWP to WinUI yet, otherwise you'd get a similar approach.
The problem with an embedded webview is the user has no trust that the app doesn't listen in on the browser session …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ramtechjoe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants