简体   繁体   中英

How to authenticate automated app that pushes data to Power BI

I have an application running on a server on our enterprise network. I have modified it to push data to Power BI (cloud) through the REST API. The application is automated and has no user interaction.

What is the best way to authenticate it? Currently I have given it my own user and password and placed it in the source code.

I don't like that solution, but is there a better way? Creating an Azure AD account for just this purpose also does not seem right.

The docs mention this:

Application permissions: Your client application needs to access the web API directly as itself (no user context). This type of permission requires administrator consent and is also not available for native client applications.

I guess I cannot use this method because the application falls in the "native client" category, or..?

You can access the web API using the application's identity and presenting the application ID, credential(password or Certificate) for Azure AD authentication. This scenario is documented here . You can also get code samples for a daemon app at Daemon applications (accessing Web APIs with the application's identity)

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