Is there any way to get access token for MFA (Multi-Factor Authentication) enfored users?

Bikesh Maharjan 1 Reputation point
2021-11-17T20:05:04.987+00:00

I was able to get access token using username and password before implementing multi-factor authentication. Once multi-factor authentication is implemented for all users then it says "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." SMS text is being used as additional verification method. How do I get access token now?

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

1 answer

Sort by: Most helpful
  1. Cristian SPIRIDON 4,481 Reputation points
    2021-11-18T18:21:42.853+00:00

    Hi,

    If you can open a browser window from your app then you can authenticate and obtain an access token even with MFA.
    If you cannot open a browser window then you can use device flow authentication to get a access token. More info in following acticle:
    https://joonasw.net/view/device-code-flow

    Hope this helps!


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.