-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android 11+ no longer throws MsalClientException when matching URL scheme defined in multiple apps #1751
Comments
@opt05 Thanks for sharing the details of the issue. We will investigate and come back to you. |
@opt05 Just to confirm, is the data part of both the apps's manifest is absolutely similat? And are you creating your "redirect_uri" using the same set of schemes information for both apps? Tried reproducing this scenario on Android 11 and 13 and the app is throwing com.microsoft.identity.client.exception.MsalClientException: for me on Pixel device. |
@negoe The way that we are reproducing and seeing it in our prod app is by installing the MyDish app (which is registering as some sort of catch all with MSAL scheme) and then using our own registration in our app's manifest (also mentioned above):
Then create the PublicClientApplication, like so: Here is our
I installed the MyDish app and our app on the following
|
Can you please advice how to recover from this situation (when user has another app with MSAL and matching "android:scheme="msauth"" attribute in manifest, installed from Google Play) ? We encounter this problem from time to time and we discover more and more apps from Google Play that are colliding with our app. ( |
hi @Greta-Rad Thanks for the feedback. We are trying our best to carve out some space on our roadmap to address this issue. As soon as we have more clarity I will reach out to you. |
The same on my side @negoe. I was trying to fight this problem for a few days already. I still get the error:
and the _com..myapp.dev_* is exactly the ID of my app. Samsung Galaxy S10 (fabric reset done) Any news on that ? |
Hi @negoe |
@negoe why is there no open issue on this? |
@negoe I am also facing the same issue. Can you please provide a solution for this? Many users are facing this issue, and we can't ask them to uninstall another app. |
@Ddv0623 @opt05 @Ddv0623 @negoe @einatguri @pawel-gasiorowski-avenga This issue is fixed by adding authorization_user_agent as WEBVIEW in the configuration file instead by DEFAULT and BROWSER |
With WEBVIEW user agent facebook login does not work for security reasons, hence we use DEFAULT. |
Describe the bug
Related to #1722 then when an app has a matching scheme, on Android 11 and greater it no longer throws any exception and proceeds with the creation of the client application. This is probably due to Package Visibility change in Android 11
Smartphone (please complete the following information):
Stacktrace
This is the expected stacktrace:
To Reproduce
Steps to reproduce the behavior:
PublicClientApplication.createMultipleAccountPublicClientApplication(context, R.raw.msal_config)
Expected behavior
Android 11+ should throw the same exception as Android 10 and below when
PublicClientApplication.createMultipleAccountPublicClientApplication
is calledActual Behavior
On Android 11+, when any function(i.e.
acquireToken
) is called on thePublicClientApplication
, it will get stuck and never come back to the appScreenshots
n/a
Additional context
There probably needs to be added an intent query in the Manifest of the library
The text was updated successfully, but these errors were encountered: