AzureAD / azure-activedirectory-library-for-js

The code for ADAL.js and ADAL Angular has been moved to the MSAL.js repo. Please open any issues or PRs at the link below.
https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/maintenance/adal-angular
Apache License 2.0
627 stars 372 forks source link

Not logging in for MFA enabled accounts #733

Closed HarshitJn closed 6 years ago

HarshitJn commented 6 years ago

I am not able to login to my account which has MFA enabled. On calling login everything works fine but I never get an option for multi factor authentication and the popup just closes leaving me in un-logged in state. I am using angular 5.1.2 and ng2-adal along with angular-adal.

I get the following in hash:

error=interaction_required&error_description=AADSTS50079%3a+The+user+is+required+to+use+multi-factor+authentication

rohitnarula7176 commented 6 years ago

@HarshitJn Can you try calling acquireTokenPopup for the resource which require MFA. You will need to consent once for the resource and you can then call acquireToken to get the token silently for subsequent calls.

HarshitJn commented 6 years ago

Actually I am using ng2-adal library in my angular project and it doesnt provide any functionality to call acquireTokenPopup(). I tried to call this function explicitly after login by changing some code in that library but it didnt do anything.

nehaagrawal commented 6 years ago

@HarshitJn ng2-adal is not supported by us https://www.npmjs.com/package/ng2-adal. Please open issue on their github repository.