Users can't login on website with MSAL library when using an IOS device with Company portal app installed

Jon Dadi 21 Reputation points
2021-09-20T12:41:50.98+00:00

Hello

We have a .NET 4.5.2 web forms project that has login functionality using the MSAL javascript library. It works fine for everyone except IOS devices that have the Company Portal app installed. The user gets prompted to choose their email and enter the password and in their azure logs the login request is marked as success, but when the user getenter code heres redirected back to the website the login does not continue.
We are using msal v1.3.0-beta.0.

Our cache variable in msalconfig.js looks like this:

 cache: {
        cacheLocation: "sessionStorage", // This configures where your cache will be stored
        storeAuthStateInCookie: false, // Set this to "true" if you are having issues on IE11 or Edge
 }

Does anyone know what might cause this?

Best regards,
Jón

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,276 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,559 questions
{count} votes

1 answer

Sort by: Most helpful
  1. VipulSparsh-MSFT 16,231 Reputation points Microsoft Employee
    2021-09-23T05:43:21.4+00:00

    @Jon Dadi Not sure about the exact issue, but I would start with checking a working and nonworking scenario.
    You can collect Xcode logs from IOS device when they have Company portal (Intune) and collect the same logs from another device when you do not have the CP app installed, see what actions are failing or not expected.

    Post that, you can also raise this query from Intune team via support or by using this tag thread as the behavior is only happening after CP app installation and Intune team owns CP app. https://learn.microsoft.com/en-us/answers/topics/103046/mem-intune-general.html

    -----------------------------------------------------------------------------------------------------------------

    Please remember to "Accept Answer" if any answer/reply helped, so that others in the community facing similar issues can easily find the solution.

    0 comments No comments