Forum Discussion
austinhag
8 years agoFrequent Visitor
Getting access token for user owns data (UOD) using JavaScript
I'm trying to prototype Power BI Embedded with User Owns Data (UOD) using Javascript. The provided sample on Github (https://github.com/Microsoft/PowerBI-JavaScript) works great; however, I'm not ab...
austinhag
8 years agoFrequent Visitor
Further, looking at the OAuth 2.0 documentation, I assume that that for Power BI UOD embedded, we should be using the "Authorization code" grant type (as opposed to "Client credentials"). However, what's interesting is that I assume the resulting access token needs to be passed back to the browser so that the subsequent calls to powerbi.embed can be made using it.
mittalpatel130
6 years agoHelper III
austinhag - Could you identify which grant type to use in this scenario? I'm using ADAL.js to get the access token using "Client Credentials" but it returns id_toekn in Browser URL. I'm not sure how to get it from browser to load the tiles on javaScript page.