msintuneappsdk / ms-intune-app-sdk-ios

Intune App SDK for iOS enables data protection and mobile app management features in iOS mobile apps with Microsoft Intune
84 stars 25 forks source link

MFA prompt appears during MSAL interactive token flow even though MFA is disabled #429

Open viwod opened 2 weeks ago

viwod commented 2 weeks ago

Describe the bug: The MFA prompt to install the Authenticator app appears even though the user's MFA requirement has been disabled. This occurs during the MSAL interactive token acquisition flow. We have checked to ensure that MFA for this user has been disabled via three methods:

  1. Navigating to per-user MFA settings, the user has multi-factor authentication set to disabled
  2. Within Entra ID -> Overview -> Properties -> Security defaults are disabled for this user as they are targeted by a conditional access policy
  3. Within the access controls for the conditional access policy targeting this user, the only control enforced is the requirement of an app protection policy. The user is already targeted by a valid app protection policy for the app.

To Reproduce Steps to reproduce the behavior:

  1. loginAndEnrollAccount() for user
  2. Intune SDK displays prompt to restart app to apply app protection policies
  3. App restarts
  4. Attempt to acquire MSAL token silently
  5. Receive interaction required error, initiate interactive token acquisition via acquireTokenInteractively()
  6. Enter account credentials on Microsoft page that appears
  7. MFA prompt (in attached image) appears. (Error code 50127)

Expected behavior: Allow interactive token acquisition to proceed without requiring Authenticator app interaction.

Screenshots and logs:

Screenshot 2024-05-02 at 5 18 28 PM

Smartphone (please complete the following information):

Intune App SDK for iOS (please complete the following information):

Additional context: Add any other context about the problem here.

pmod2 commented 2 weeks ago

Thanks for reaching out. Kindly contact me directly at my email address priyankamodi@microsoft.com to provide additional details that might include Personally Identifiable Information (PII), which may not be suitable for public disclosure.

  1. Intune Logs
  2. Intune Diagnostic Logs
  3. Application ID
  4. Fiddler trace of repro
  5. Video recording of the repro.
  6. User ID:
  7. Intune Device ID: