openid / AppAuth-Android

Android client SDK for communicating with OAuth 2.0 and OpenID Connect providers.
https://openid.github.io/AppAuth-Android
Apache License 2.0
2.83k stars 882 forks source link

Ways to fetch exact causes for User Cancelled Flow #756

Open Android3005 opened 2 years ago

Android3005 commented 2 years ago

Configuration

Description

Hi, we are using AppAuth lib 0.8.1 in our code for achieving SSO. We are seeing a lot many User Cancelled Flow Errors on Android Api-30. Sometimes it is because of browser issues or sometimes the browser just opens and immediately shut down. So kindly suggest how to get the exact cause behind User Cancelled Flow errors through the code itself.

mt073 commented 2 years ago

I also facing the same issue @Android3005 Any solutions for the same.

Android3005 commented 2 years ago

@mt073 I am still waiting to hear from the App-Auth team for the solution.

agologan commented 2 years ago

Unfortunately I do not understand what you want exactly. You may however go look and debug cancellation in our AuthorizationManagementActivity and if you can be more precise in what data you'd need out of it maybe we can design an API around it.

skauss commented 2 years ago

Hi we have a similar problem. AppAuth Lib Version 0.8.1 was fine ,since we use Version 0.10.0 this problem occur

AuthorizationException: {"type":0,"code":1,"errorDescription":"User cancelled flow"} at de.company.oauth.OAuthService.lambda$doUpdateAuthState$31$OAuthService(OAuthService.java:1010) at

agologan commented 2 years ago

@skauss have you seen #769 ?