Forum Discussion
Error AADSTS50076 while trying to acquire token to embedded Power BI using JS API
- 1 year ago
Thanks for reply!
Interesting solutions and article about MSAL, I will study more about this in the future.
By now, I solved the problem releasing the MFA when the request comes from specific IPs adresses. My application is located in a specific and stable VM with static IP adress, so, every request to Azure, starts from the same IP adress, and only 1 IP, knowing this fact, I add the IP address at the following:
https://entra.microsoft.com/#view/Microsoft_AAD_AuthenticationMethods/MultifactorAuthenticationConfig.ReactView
And go to tab "Service config".
Thanks for replying and trying to help me.
Hi gluizqueiroz
Thank you for reaching out to the Microsoft Fabric Forum Community.
You're using the ROPC flow, which doesn't support MFA, so it fails when your Azure AD enforces it.
To Fix without disabling MFA, Use MSAL.js with Authorization Code Flow (for user login) or Client Credentials Flow (for backend apps).
Both support MFA and comply with Azure AD policies.
Please refer for documentation.
https://learn.microsoft.com/en-us/entra/identity-platform/msal-overview
If this solution helped, please consider marking the response as accepted and giving it a thumbs-up so others can benefit as well.
Best regards,
Prasanna Kumar
Thanks for reply!
Interesting solutions and article about MSAL, I will study more about this in the future.
By now, I solved the problem releasing the MFA when the request comes from specific IPs adresses. My application is located in a specific and stable VM with static IP adress, so, every request to Azure, starts from the same IP adress, and only 1 IP, knowing this fact, I add the IP address at the following:
https://entra.microsoft.com/#view/Microsoft_AAD_AuthenticationMethods/MultifactorAuthenticationConfig.ReactView
And go to tab "Service config".
Thanks for replying and trying to help me.