Share via

Microsoft token oauth2

Luis668 0 Reputation points
2023-04-17T13:32:14.2+00:00

I need to get an autenthication token from the request https://login.microsoftonline.com/organizations/oauth2/v2.0/token, but I was only successful when I disabled multifactor authentication on the account I'm using. With multi-factor authentication enabled, I get this message: "error_description": "AADSTS50079: Due to a configuration change made by your administrator, or because you moved to a new location, you must enroll in multi-factor authentication to access  Is there any chance this will work with multi-factor authentication enabled?

Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments

1 answer

Sort by: Most helpful
  1. Dillon Silzer 60,931 Reputation points
    2023-04-17T15:13:22.2+00:00

    Hello Luis,

    Please ensure that you are enrolled with MFA when you enable MFA on the account.

    If it is enforced by MFA through Conditional Access, you will be prompted, if you have security defaults enabled please use the following link:

    https://aka.ms/mfasetup


    If this is helpful please accept answer.

    Was this answer helpful?

    0 comments No comments

Your answer

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