Clancey / simple_auth

The Simplest way to Authenticate in Flutter
MIT License
352 stars 108 forks source link

Authenticator doesn't cancel after dismissing on iOS and macOS #162

Open thomasostfeld opened 3 years ago

thomasostfeld commented 3 years ago

I'm implementing authentication with Keycloak, so I'm not using SSO.

In that case the plugin opens a SafariViewController on iOS. When clicking the "Done" button of the view controller nothing happens in the plugin and the authenticate Future doesn't complete or fail. Same behaviour on macOS

My expectation was that the Future completes with a CancelledException error. It works that way on Android at least.

Right now there is no way of telling if the user cancelled the authentication flow or just takes a long time to finish.

einjunge99 commented 3 years ago

Same here. Any light as to what has to be done to get it work correctly? @Clancey