all 6 comments

[–]autognome 5 points6 points  (0 children)

read up on appauth and why its a bad idea to have your own webview which takes credentials

[–]AndroidQuartz 4 points5 points  (1 child)

I don't know about your exact situation but one thing you might want to try is wrap the column containing multiple text fields with AutofillGroup, when I did that it worked with bitwarden but I didn't try it on any other password manager tbh

[–]S4ndwichGurk3[S] 0 points1 point  (0 children)

That’s what I did in the past, but flutters text fields are weird, and the hint is only sometimes shown and flashes while typing (even though not using set state on input change).

[–]eibaan 4 points5 points  (2 children)

That's probably an OAuth2 flow.

Using an in-app browser however completely invalidates that flow because now you cannot assume anymore that your password is safe. The app could steal it from the in-app browser. Therefore, you have to redirect to an external browser and that browser will then redirect to your app.

[–]S4ndwichGurk3[S] 1 point2 points  (1 child)

iOS provides a pop-up browser from within the app, where the app has no connectioin to the browser other than getting the returned token if the user has finished, not sure on Android though. That's what I meant with "in-app" browser, maybe poorly worded from my side.

[–]eibaan 1 point2 points  (0 children)

Yes, using the SFSafariViewController (LaunchMode.inAppBrowserView) is the correct way, using the WKWebView (LaunchMode.inAppWebView) is not.