Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hi,
I'm using the package "powerbi-client-react" to embed a PowerBI report on a react application.
<PowerBIEmbed embedConfig = {{ type: 'report', // Supported types: report, dashboard, tile, visual and qna id: '<Report Id>', embedUrl: '<Embed Url>', accessToken: '<Access Token>', // Keep as empty string, null or undefined tokenType: models.TokenType.Embed }} />
The package itself works well, but I'm having trouble getting an access token (for the organization) that works. I've configured the API permissions on our app resgistration to connect to PowerBI.
However, when using this token to render the powerBI embeded, I get this network error, which suggests an invalid token:
If I get a token directly from the PowerBI developer console -- copy(powerBIAccessToken) --, this token works well. But the token that we get from the MFA OAuth doesn't work.
Thank you for your help!
Hi @Anonymous ,
MFA configuration is not controlled by PowerBI, you can disable MFA requirement for your master user following the steps described in https://docs.microsoft.com/en-us/azure/active-directory/authentication/howto-mfa-userstates
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |