Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi-factor auth #93

Closed
tfenster opened this issue May 28, 2020 · 2 comments
Closed

Multi-factor auth #93

tfenster opened this issue May 28, 2020 · 2 comments

Comments

@tfenster
Copy link

Is your feature request related to a problem? Please describe.
I am using username/password based login, which works fine unless a user has multi-factor auth set up. In that case I get an error message like

{"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 '...'.

Is there any way to use username/password login with MFA?

Describe the solution you'd like
Any way for user/password with MFA enabled

Describe alternatives you've considered
None

Additional context
I'm using ms-rest-nodeauth as part of a VS Code extension

@daviwil
Copy link
Contributor

daviwil commented Jun 17, 2020

Hi @tfenster, according to the AAD documentation, multi-factor authentication is not allowed when using the username/password (ROPC) authentication flow:

If users need to use multi-factor authentication (MFA) to log in to the application, they will be blocked instead.

I'd recommend using the interactiveLoginWithAuthResponse method instead if it's possible in your scenario. AAD generally discourages applications from using the username/password flow due to security concerns.

@daviwil daviwil closed this as completed Jun 17, 2020
@tfenster
Copy link
Author

Thanks for the clarification

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants