Skip to content
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

MSAL Initialization Failures in production #2228

Open
aj-kueterman opened this issue Dec 17, 2024 · 0 comments
Open

MSAL Initialization Failures in production #2228

aj-kueterman opened this issue Dec 17, 2024 · 0 comments

Comments

@aj-kueterman
Copy link

aj-kueterman commented Dec 17, 2024

Describe the bug
Currently, a small subset of users of our Android app (live in production) are experiencing issues signing in, which we have narrowed down to errors from the PublicClientApplication.createMultipleAccountPublicClientApplication call.

We call that function at app startup to store an instance of IMultipleAccountPublicClientApplication and use it to launch the MSAL for sign in, etc. We also attempt to re-initialize the IMultipleAccountPublicClientApplication if it isn't available when the user attempts a sign in.

The % of user sessions that experience this issue is very small (something like 0.3% of sessions) but due to our large user base and the severity of the error (blocking sign-ins) it is a significant impact on users.

Primary ask: Looking for guidance as to why/in what cases MSAL initialization can fail when calling PublicClientApplication.createMultipleAccountPublicClientApplication. What are the common MsalException types / reasons that can be confirmed.

Smartphone (please complete the following information):

  • Device: All devices / manufacturers
  • Android Version: All Android versions (10+)
  • Browser: Mobile Chrome
  • MSAL Version: 4.0.1

Stacktrace
No crashes. MSAL returns a com.microsoft.identity.common.exception.BaseException. See comment above.

To Reproduce
No clear conditions possible to reproduce, looking for guidance as for why MSAL Initialization typically fails so we can attempt to reproduce this in dev/non prod.

Expected behavior
MSAL Initialization to succeed (or be recoverable) for all users.

Actual Behavior
MSAL Initialization fails for some users.

Screenshots
(per 24/hr)
Screenshot 2024-12-17 at 10 28 30 AM

Additional context
We are currently without additional logging that allows us to unwrap the message of the com.microsoft.identity.common.exception.BaseException. So looking for guidance there until a time when we can gather better logs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant