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 883 forks source link

Communication problems between AuthorizationManagementActivity and RedirectUriReceiverActivity are caused by an Android 14 task stack issue. #1061

Closed akoueikjc closed 4 months ago

akoueikjc commented 5 months ago

Checklist:

Configuration

Issue Description

My Problem is only on Android 14 devices. Google Pixel 7 Pro API 34. I have Activity A and B. Activity B has it own taskAffinity, and im launching the AuthRequest from Activity B and finishing im getting No stored state - unable to handle response warn from AuthorizationManagementActivity. and its not redirecting the activity B but opening it own Task instance.

I've attempted to use AuthorizationManagementActivity and RedirectUriReceiverActivity with the same custom taskAffinity. It was unsuccessful. (DID NOT WORK)

akoueikjc commented 4 months ago

Please note that this issue has nothing to do with AppAuth-Android library.

I already gave my answer here https://github.com/openid/AppAuth-Android/issues/977#issuecomment-2129326556

do there is a way to bypass Samsung Android 14 bug on the activity Result