ThexXTURBOXx / flutter_web_auth_2

Flutter plugin for authenticating a user with a web service
https://pub.dev/packages/flutter_web_auth_2
MIT License
57 stars 55 forks source link

App does not authenticate the user after redirection #105

Closed jrelova closed 7 months ago

jrelova commented 7 months ago

Description This only happens on the Android application. After successfully logging in the browser the browser is dismissed and the user is redirected back to the app. Unfortunately the user is not authenticated and is not automatically logged in. I've also added some breakpoints on my code and result from FlutterWebAuth.authenticate() is not being used/triggered after the redirection.

Important note:

Exception or Error There is not error, just authentication is not working properly on initial log in.

Expected Behaviour User should be redirected to the app and automatically logged in.

Screenshots No response

Additional context No response

Device Galaxy S22

OS Android 13

Browser Chrome

Flutter version 3.13.8

flutter_web_auth_2 version 3.0.0

Checklist I have read and followed the entire troubleshooting guide and it has not provided the solution I need. I have provided all the information I can.

ThexXTURBOXx commented 7 months ago

Sadly I don't really understand the underlying issue. This package is used for retrieving a redirection URL, which should contain the identification token (or something like that). So, the entire authentication process is done in a custom tab, which just shows a webpage that has nothing to do with flutter_web_auth_2. So, if the authentication itself is not working, it is most definetly not flutter_web_auth_2's fault. Is your issue maybe that flutter_web_auth_2 does not catch this URL correctly?

ThexXTURBOXx commented 7 months ago

Stale issue; closing due to inactivity