authentication - Power BI - Programmatically sign in -


i'm trying write web app embeds power bi reports. data on-premises cannot use new solution available (power bi embedded). inconvenience of using old approach (https://powerbi.microsoft.com/en-us/documentation/powerbi-developer-integrate-a-power-bi-tile-or-report/) consumer of web page needs power bi user needs sign in in order web app authentication token (there couple of page redirections need happen before). question is, there way power bi sign in in programmatic way? in way can use 1 power bi account getting content.

i experimenting there, thread helped me (see post #8):

http://community.powerbi.com/t5/developer/how-to-use-power-bi-rest-api-without-gui-authentication-redirect/m-p/14218#

basically:

post request to: https://login.microsoftonline.com/common/oauth2/token

body, form-url-encoded:

then directly token.

also might consider security concerns described here: http://www.cloudidentity.com/blog/2014/07/08/using-adal-net-to-authenticate-users-via-usernamepassword/ under "when not use feature"


Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -