Using Cypress with MSAL 2.0 (bypassing SSO)

Patricia 1 Reputation point
2021-10-21T15:25:58.15+00:00

Good morning,

My frontend application is using MSAL + AD. I'm trying to run Cypress but when I emulate the logging with msal I'm getting this error. My account is username@companyName.com (I'm under a company's domain) . Maybe that's the problem? It's unable to redirect if I run msal on cypress this way? Any help?

142529-microsoftteams-image.png

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,664 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. James Hamil 22,086 Reputation points Microsoft Employee
    2021-10-25T22:45:38.583+00:00

    Hi @Patricia , this may be an issue caused by Federated login, if you have it enabled. Please look over this thread and see if it resolves your issue. You might need to try creating a new account to test as Amanpreet suggested. If this does not fix the error it is likely caused by something else. Please let me know if this works.

    Best,
    James

    0 comments No comments