Skip to content

MFA screen not showing in mobile app (only appears in web login) #2362

@zubair1995

Description

@zubair1995

Describe the bug

I have used the sample code from this repository (singleAccount example).
Added the hash key in AndroidManifest.xml and auth_config.
The application builds successfully.
Login with my email and credentials works fine.
After successful login, it redirects back to the app as expected.

Smartphone (please complete the following information):

  • Device: Vivo y53s and Android Emulater
  • Android Version:
  • Browser: No
  • MSAL Version:6.+

To Reproduce

Steps to reproduce the behavior:

  1. Clone this repo.
  2. Run the singleAccount example.
  3. Add hash key in AndroidManifest.xml and auth_config.
  4. Build and run on Android device.
  5. Login using credentials that require MFA in web flow.
  6. Observe that the login succeeds and token is returned, but MFA screen never appears.
  7. Screenshots / Logs:(Attach screenshot of token screen here)

Environment:
Repository sample: singleAccount example
Additional context:
MFA works as expected on web login.
The issue is only in the Android app flow.

Expected behavior

A clear and concise description of what you expected to happen.

Actual Behavior

A description of what actually happened.

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context

Add any other context about the problem here.

Please note: Do not include sensitive information like PII, OII, credentials, secrets, and tokens.

For privacy/security issues please see instructions here

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions