<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Error AADSTS50076 while trying to acquire token to embedded Power BI using JS API in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Error-AADSTS50076-while-trying-to-acquire-token-to-embedded/m-p/4714761#M61535</link>
    <description>&lt;P&gt;Thanks for reply!&lt;BR /&gt;&lt;BR /&gt;Interesting solutions and article about MSAL, I will study more about this in the future.&lt;BR /&gt;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:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://entra.microsoft.com/#view/Microsoft_AAD_AuthenticationMethods/MultifactorAuthenticationConfig.ReactView" target="_blank"&gt;https://entra.microsoft.com/#view/Microsoft_AAD_AuthenticationMethods/MultifactorAuthenticationConfig.ReactView&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;And go to tab "Service config".&lt;BR /&gt;&lt;BR /&gt;Thanks for replying and trying to help me.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 30 May 2025 20:28:15 GMT</pubDate>
    <dc:creator>gluizqueiroz</dc:creator>
    <dc:date>2025-05-30T20:28:15Z</dc:date>
    <item>
      <title>Error AADSTS50076 while trying to acquire token to embedded Power BI using JS API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Error-AADSTS50076-while-trying-to-acquire-token-to-embedded/m-p/4710529#M61465</link>
      <description>&lt;P&gt;I developed a new feature in my web portal that embedded Power BI Reports and it works fine in my PC, in "development enviorament", but when I publish to "homolog enviorament", the function that acquires token doesnt work properly and returns the following error:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{"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 '00000009-0000-0000-c000-000000000000'. Trace ID: 81bf8680-6f0f-4a07-8859-54549ae00600 Correlation ID: c4c81d67-5401-4d62-80f7-e481bc4ccaf9 Timestamp: 2025-05-27 21:17:09Z","error_codes":[50076],"timestamp":"2025-05-27 21:17:09Z","trace_id":"81bf8680-6f0f-4a07-8859-54549ae00600","correlation_id":"c4c81d67-5401-4d62-80f7-e481bc4ccaf9","error_uri":"https://login.microsoftonline.com/error?code=50076","suberror":"basic_action"}&lt;/LI-CODE&gt;&lt;P&gt;My request to acquireToken use the following structure:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;POST https://login.microsoftonline.com/common/oauth2/token

$scope=openid
&amp;amp;resource=https://analysis.windows.net/powerbi/api
&amp;amp;client_id={clientId}
&amp;amp;username={email}
&amp;amp;password={password}
&amp;amp;grant_type=password
&amp;amp;client_secret={clientSecret}&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;I have been use this method for many years and in 5 different web portal and works fine.&lt;BR /&gt;I already created an "app" in Azure, made the configuration, give a lot of API Permissions in "app", grant admin consent.&lt;BR /&gt;How can I manage this error? This is because I need to use multi factor authentication to login? How can I acquire token and still use MFA? (I'm think the guy from IT does not allow me to remove MFA from account)&lt;/P&gt;</description>
      <pubDate>Wed, 28 May 2025 13:28:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Error-AADSTS50076-while-trying-to-acquire-token-to-embedded/m-p/4710529#M61465</guid>
      <dc:creator>gluizqueiroz</dc:creator>
      <dc:date>2025-05-28T13:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: Error AADSTS50076 while trying to acquire token to embedded Power BI using JS API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Error-AADSTS50076-while-trying-to-acquire-token-to-embedded/m-p/4711320#M61478</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/67670"&gt;@gluizqueiroz&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for reaching out to the Microsoft Fabric Forum Community.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The error code AADSTS50076 typically indicates that Multi-Factor Authentication (MFA) is required due to a policy change or new sign-in location. This often occurs when using authentication flows that do not support MFA, such as the Resource Owner Password Credential (ROPC) grant.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To resolve this issue, please refer to the official Microsoft documentation here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/entra/identity-platform/reference-error-codes#aadsts50076" target="_blank"&gt;https://learn.microsoft.com/en-us/entra/identity-platform/reference-error-codes#aadsts50076&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;If this solution helped, please consider marking the response as accepted and giving it a thumbs-up so others can benefit as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Prasanna Kumar&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 May 2025 05:09:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Error-AADSTS50076-while-trying-to-acquire-token-to-embedded/m-p/4711320#M61478</guid>
      <dc:creator>v-pgoloju</dc:creator>
      <dc:date>2025-05-29T05:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: Error AADSTS50076 while trying to acquire token to embedded Power BI using JS API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Error-AADSTS50076-while-trying-to-acquire-token-to-embedded/m-p/4712883#M61504</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;SPAN&gt;Prasanna Kumar!&lt;BR /&gt;&lt;/SPAN&gt;Thanks for the answer so far, but: How can I manage this error?&lt;BR /&gt;&lt;BR /&gt;I need to check or uncheck something at Azure?&lt;BR /&gt;What I need to do to receive a token after request?&lt;BR /&gt;I need to disable MFA for the user?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 May 2025 17:46:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Error-AADSTS50076-while-trying-to-acquire-token-to-embedded/m-p/4712883#M61504</guid>
      <dc:creator>gluizqueiroz</dc:creator>
      <dc:date>2025-05-29T17:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: Error AADSTS50076 while trying to acquire token to embedded Power BI using JS API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Error-AADSTS50076-while-trying-to-acquire-token-to-embedded/m-p/4713117#M61508</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/67670"&gt;@gluizqueiroz&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for reaching out to the Microsoft Fabric Forum Community.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You're using the ROPC flow, which doesn't support MFA, so it fails when your Azure AD enforces it.&lt;/P&gt;
&lt;P&gt;To Fix without disabling MFA, Use MSAL.js with Authorization Code Flow (for user login) or Client Credentials Flow (for backend apps).&lt;BR /&gt;Both support MFA and comply with Azure AD policies.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please refer for documentation.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/entra/identity-platform/msal-overview" target="_blank"&gt;https://learn.microsoft.com/en-us/entra/identity-platform/msal-overview&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;If this solution helped, please consider marking the response as accepted and giving it a thumbs-up so others can benefit as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Prasanna Kumar&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 May 2025 02:19:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Error-AADSTS50076-while-trying-to-acquire-token-to-embedded/m-p/4713117#M61508</guid>
      <dc:creator>v-pgoloju</dc:creator>
      <dc:date>2025-05-30T02:19:16Z</dc:date>
    </item>
    <item>
      <title>Re: Error AADSTS50076 while trying to acquire token to embedded Power BI using JS API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Error-AADSTS50076-while-trying-to-acquire-token-to-embedded/m-p/4714761#M61535</link>
      <description>&lt;P&gt;Thanks for reply!&lt;BR /&gt;&lt;BR /&gt;Interesting solutions and article about MSAL, I will study more about this in the future.&lt;BR /&gt;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:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://entra.microsoft.com/#view/Microsoft_AAD_AuthenticationMethods/MultifactorAuthenticationConfig.ReactView" target="_blank"&gt;https://entra.microsoft.com/#view/Microsoft_AAD_AuthenticationMethods/MultifactorAuthenticationConfig.ReactView&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;And go to tab "Service config".&lt;BR /&gt;&lt;BR /&gt;Thanks for replying and trying to help me.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 May 2025 20:28:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Error-AADSTS50076-while-trying-to-acquire-token-to-embedded/m-p/4714761#M61535</guid>
      <dc:creator>gluizqueiroz</dc:creator>
      <dc:date>2025-05-30T20:28:15Z</dc:date>
    </item>
  </channel>
</rss>

