-
Notifications
You must be signed in to change notification settings - Fork 123
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
Unable to create MultipleAccountPublicClientApplication when authorization_user_agent=DEFAULT and user has com.workjam.workjam app installed #1722
Comments
@Greta-Rad Can you please confirm that you are not using the same redirect uri for both the apps i.e. Workjam and your other one? Redirect uri is combination of signature hash and package name. Please make sure that even if they have the same signature but at least package name is different or vice versa, to keep the redirect uri unique for both the apps. |
Yeah, I confirm, the package name used in redirect_uri is our app's package name, the structure is as following |
I have done some experimenting and it seems WorkJam app catches "msauth" scheme regardless of what package and signature hash is defined. Steps to reproduce: we can create new app (msal dependency not required) and in MainActivity's on create add the following:
if we have WorkJam app installed, it would print the following: @negoe Is there a reason why this check Line 270 in 31c1fc8
|
@Greta-Rad the loop allows for multiple activities to be returned, in case there are multiple activities that can handle the same intent, and the developer can choose which one to use. |
We have an app in production running fine but from firebase logs discovered app is crashing for certain users.
Device: multiple, example Pixel 3XL
Android version: 9, 10, 11, 12
MSAL version: 4.0.5 (initially noticed on 2.2.3, updated to 4.0.5 but still crashing for the same reason)
Other preconditions:
PublicClientApplication.createMultipleAccountPublicClientApplication( application, getClientConfig() )
is throwing the following:
Our manifest:
PublicClientApplicationConfiguration.validateCustomTabRedirectActivity
method gets 2 entries in resolveInfoList:com.microsoft.identity.client.BrowserTabActivity
net.openid.appauth.RedirectUriReceiverActivity
I have decompiled Workjam app and there is the following declaration in manifest:
If user uninstalls Workjam app, app is initialized correctly without exceptions being thrown.
The text was updated successfully, but these errors were encountered: