Two factor authenticatio with ADAL REST API

Jordan Grébé 1 Reputation point
2020-12-12T17:30:23.177+00:00

I'm using adal-node for authenticating users and I'm face a problem described by:

"2020-12-12T17:26:36.858Z[error]"Get Token request returned http error: 400 and server response: {\"error\":\"interaction_required\",\"error_description\":\"AADSTS50076: Due to a configuration change made by your administrator, or because you moved to a new location, you must use multi-factor authentication to access '00000002-0000-0000-c000-000000000000'.\r\nTrace ID: 53157db9-5dd7-4332-b28e-2e1f27a72f00\r\nCorrelation ID: 9fd24ee3-c008-457e-b175-a3bb809b7645\r\nTimestamp: 2020-12-12 17:26:37Z\",\"error_codes\":[50076],\"timestamp\":\"2020-12-12 17:26:37Z\",\"trace_id\":\"53157db9-5dd7-4332-b28e-2e1f27a72f00\",\"correlation_id\":\"9fd24ee3-c008-457e-b175-a3bb809b7645\",\"error_uri\":\"https://login.windows.net/error?code=50076\",\"suberror\":\"basic_action\"}""

So my question, is there a way to signin user which has multi-factor authentication activated on there account ?
Note: I'm using adal as REST API

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

1 answer

Sort by: Most helpful
  1. Cristian SPIRIDON 4,471 Reputation points
    2020-12-13T10:39:21.63+00:00

    Can you check if MFA is enabled for the account you test with?

    Following answer provide more info on what you should pay attention.

    Hope this helps.

    1 person found this answer helpful.