none
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 RRS feed

  • Question

  • Hi,

    I am using ADAL library for authenticating the user from Azure AD non-interactively using username and password. It works fine when MFA is not enabled but If I enable MFA on Azure AD, I got a following error:

    com.microsoft.aad.adal4j.AdalClaimsChallengeException:

    {"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 '00000003-0000-0000-c000-000000000000'.\r\nTrace ID: 842e2757-8cf2-4d04-a7e4-668899c3df00\r\nCorrelation ID: a8b650ee-142d-481c-bfda-fb69438be164\r\nTimestamp: 2019-03-28 15:28:47Z","error":"interaction_required"}

    at com.microsoft.aad.adal4j.AdalTokenRequest.executeOAuthRequestAndProcessResponse(AdalTokenRequest.java:124)
    at com.microsoft.aad.adal4j.AuthenticationContext.acquireTokenCommon(AuthenticationContext.java:928)
    at com.microsoft.aad.adal4j.AcquireTokenCallable.execute(AcquireTokenCallable.java:70)
    at com.microsoft.aad.adal4j.AcquireTokenCallable.execute(AcquireTokenCallable.java:38)
    at com.microsoft.aad.adal4j.AdalCallable.call(AdalCallable.java:47)

    any help will be appreciated. Thanks in advance.

    Thursday, April 11, 2019 10:50 AM

All replies