[flutter_appauth] Add custom browser with user cancellation handling#654
[flutter_appauth] Add custom browser with user cancellation handling#654Kuurse wants to merge 3 commits into
Conversation
MaikuB
left a comment
There was a problem hiding this comment.
Thanks for making the changes. Besides fixing the linter issues, would you be able to make changes that answered my other question? I was testing by making tweaks to this PR and realised the existing ExternalUserAgent.customBrowser is actually insufficient. It maps to CustomBrowserSafari. I found though that user the other ones listed here like CustomBrowserChrome would open those browsers. In other words, the requested changes are to
- rename
ExternalUserAgent.customBrowsershould be renamed toExternalUserAgent.customBrowserSafari - add
ExternalUserAgent.customBrowserChrome,ExternalUserAgent.customBrowserFirefoxandExternalUserAgent.customBrowserOpera, and have those map to CustomBrowserChrome, CustomBrowserFirefox and CustomBrowserOpera respectively - the Info.plist file for the example app would need to add the following
<key>LSApplicationQueriesSchemes</key>
<array>
<string>googlechromes</string>
<string>opera-https</string>
<string>firefox</string>
</array>
- the example app is updated to add scenarios for Chrome, Firefox and Opera
If your time is limited then if you're able to address the linter issues and renameExternalUserAgent.customBrowser to ExternalUserAgent.customBrowserSafari then once done, I'll merge this in and pick up the rest
|
I can look into that, but I want to confirm with you before I start, right now |
|
That part is fine. My concerns were on relate to naming in various aspects
|
Completed code from https://github.com/bbvch/flutter_appauth with added examples handling a timeout on the user login as well as user cancellation detection when signing in with an external browser, as discussed in #318 and #613.