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):
basically:
post request to: https://login.microsoftonline.com/common/oauth2/token
body, form-url-encoded:
- grant_type: "password"
- scope: "openid"
- resource: "https://analysis.windows.net/powerbi/api"
- client_id: client id
- client_secret: client secret
- username: username
- password: usernames password
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
Post a Comment