question

JordanGrb-9172 avatar image
0 Votes"
JordanGrb-9172 asked ·

Two factor authenticatio with ADAL REST API

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

azure-ad-msalazure-ad-libraries
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

CristianSPIRIDON72 avatar image
1 Vote"
CristianSPIRIDON72 answered ·

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.


· 2 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

MFA is enabled, could you please tell me if there is a way to connect MFA enabled account using adal as REST API?

0 Votes 0 ·

I would expect that when you do an openid connect flow, IdP (Azure AD) will request MFA. You need to perform the flow in a browser window so that IdP be able to redirect user to MFA.

Hope this helps.

0 Votes 0 ·