Login MFA in azure with cordova and ionic

2021-07-20T14:36:48.43+00:00

I am trying to login to azure with MFA through a modal in an ionic cordova application. Without the MFA we can through the modal get the code (because it has auth_flow) and login without problems. But the same flow with an MFA user has the problem that the modal remains blank and throws us this error:

"{" error ":" invalid_grant "," 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' e6ab3946-3b0a- 45d7-bfa8-c025fa7a37fd '. \ R \ nTrace ID: ee31b685-cba7-4ea1-a797-ceac8724c100 \ r \ nCorrelation ID: 8fae6b5a-5a6d-4421-84a7-fab020088912 \ r \ nTimestamp: 0641-07-2041 : 46Z "," error_codes ": [50076]," timestamp ":" 2021-07-20 06: 41: 46Z "," trace_id ":" ee31b685-cba7-4ea1-a797-ceac8724c100 "," correlation_id ":" 8fae6b5a-5a6d-4421-84a7-fab020088912 "," error_uri ":" https://login.microsoftonline.com/error?code=50076 "," suberror ":" basic_action "}"

I'm trying to also use the cordova library for msal (https://github.com/wrobins/cordova-plugin-msal) but I'm having problems with cordova 9 and it doesn't work for me. Is there a solution to do it with app browser?

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,933 questions
Microsoft Security Microsoft Entra Microsoft Entra ID
{count} votes

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.