Closed georgekal2798 closed 3 weeks ago
I'm facing similar issue with the default example code that is provided with flutter_appauth repo on an android device. error that can be observed from runnning the dev build with vscode is
W/AppAuth (19428): No stored state - unable to handle response
after logging in.
Same problem here.
W/AppAuth ( 4437): No stored state - unable to handle response
W/tions.scripting( 4437): Cleared Reference was only reachable from finalizer (only reported once)
I/flutter ( 4437): PlatformException(authorize_and_exchange_code_failed, Failed to authorize: [error: null, description: User cancelled flow], null, null)
same problem for me too for Android. any updates?
My new solution finally works, I compared it to another old solution and found that the new AndroidManifest.xml contains an empty property : android:taskAffinity=""
I remove it and everything works fine.
@leutbounpaseuth thanks for sharing! It works! The question now is why does it work?
@leutbounpaseuth thank you very much. After hours of searching and trying different solutions, this is the thing that finally worked !!
Hello! I'm facing an issue with flutter_appauth. I have created a custom wrapper in a fresh demo app, similar to the one that keycloak_wrapper offers. This simplified version of the wrapper provides the MainApp class with a bool stream to conditionally render the screen's content. The auth provider I am trying to use is Keycloak.
When I tap the Login button, the chrome browser loads the login page correctly. The credentials I provide are valid. However, when I try to login, the page redirects me back to the app for a split second and opens up the browser window again, as you can see in the video: auth_bug.webm
I have tried the alternative in the guides and changing the Keycloak provider's settings to different values (i.e. single word for redirect uri). They all have the same result. I cannot figure out how to make this work. Considering I have followed the guide and this is a fresh app and it works normally on iOS, it seems like a bug. Please let me know if there is something I have missed.
My android app's build.gradle is configured according to the instructions,
Thank you in advance!