Closed tfenster closed 4 years ago
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.
Thanks for the clarification
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
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