Forum Discussion
Example Request: How to Authenticate (Silently) with Javascript to Power BI Rest API
Did you find a solution to this?
Thanks
- CRMPowerBI11 years ago
Microsoft Employee
Nope, no answer.
I am posted on the MSDN priority forums on how to do OATH2 "service" authentication (which is what I want to do here), using JavaScript and all I kept getting was pointed at the same sample over and over that isn't a client side authorization example (service), it's a SingularJS WebAPI controller method protection example using ADAL
I am sure this is possible... just not something I have pieced together.
Cheers.
- JasonDunbar10 years ago
Advocate II
Hi there,
Did you get any further with this... Seems we've also hit the same roadblock; trying to do this entirely in javascript. We know that we can host a Web Service somewhere to act as a proxy and get around the cross-domain challenge, but then we're not going to achieve what we set out to do: a pure client-scripted approach that we can embed anywhere.
Would be great if you could provide an update on where you're at with this...
Jason
- CRMPowerBI10 years ago
Microsoft Employee
Sorry I didn't get anywhere on this.
Doesn't seem possible. If it is, it's such a closely regarded secret no one wants to tell.... Stinks, if you want to create cross domain , cross platform non-aspx pages, how in the world are you supposed to do it, if you can't authenticate.