Why when using redirect_uri as schema://app, my application does not show MFA but bypasses login successfully by default?

Hoàng Phúc 0 Reputation points
2024-04-17T07:05:16.99+00:00
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,540 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. James Hamil 21,776 Reputation points Microsoft Employee
    2024-04-19T22:15:20.7066667+00:00

    Hi @Hoàng Phúc , when you use a custom URI scheme as the redirect URI, the authentication flow is handled by the operating system instead of the browser. This means that the MFA prompt may not be displayed, depending on the configuration of your device and the authentication method that you are using.

    To ensure that the MFA prompt is displayed, you can try using a different redirect URI that is handled by the browser. For example, you can use https://localhost as the redirect URI during development, and then switch to a different URI when you deploy your application.

    Alternatively, you can try using a different authentication method that is more compatible with custom URI schemes. For example, you can use the OAuth 2.0 implicit flow instead of the authorization code flow, which may work better with custom URI schemes.

    Please let me know if you have any questions and I can help you further.

    If this answer helps you please mark "Accept Answer" so other users can reference it.

    Thank you,

    James

    0 comments No comments