Closed georgekal2798 closed 5 months 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 !!
@leutbounpaseuth this works for me as well. KUDOS!
I was not able to solve this from days... really appreciate @leutbounpaseuth ... May god bless you with all happiness available in the universe
Since the Android Manifest is prefilled with the "android:taskAffinity=""
, by default
This should take place in the flutter_appauth documentation (Getting Started or Android Setup sections).
One sentence could save a lot of hours finding this thread.
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.
Thanks, It worked 👍
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.
my AndroidManifest.xml not contain android:taskAffinity=""
. But i have same problem
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!