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

Jon Dadi 21 Reputation points


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,

Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
14,663 questions
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.
8,164 questions
{count} votes

1 answer

Sort by: Most helpful
  1. VipulSparsh-MSFT 16,011 Reputation points

    @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.


    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