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 ******@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 Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. James Hamil 27,221 Reputation points Microsoft Employee Moderator
    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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.