简体   繁体   中英

Embed Power BI Report Full Javascript

I want to embed a Power BI Report using the REST API. So anyone knows how to make the authentication process trought javascript, ie get the access token, because the example of the Power BI documentation is done in C#. If someone know something would be helpful! thanks

The reason you don't see a pure JavaScript example is that it wouldn't be secure. To complete the workflow you'd need to pass the client secret to the auth endpoint. In JavaScript that would be stored in plain text on the page. Not good. So use a server workflow. There are libraries for plenty of programming languages if C# is not your thing. If you're building a client app, there's a client workflow that does not require a server backend, but that's not appropriate for a web page.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM