简体   繁体   English

如何验证将数据推送到Power BI的自动化应用程序

[英]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. 我已经对其进行了修改,以通过REST API将数据推送到Power BI(云)。 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. 为此目的创建Azure AD帐户似乎也不正确。

The docs mention this: 该文档提到了这一点:

Application permissions: Your client application needs to access the web API directly as itself (no user context). 应用程序权限:您的客户端应用程序需要直接以本身的身份访问Web API(无用户上下文)。 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. 您可以使用应用程序的身份并显示用于Azure AD身份验证的应用程序ID,凭据(密码或证书)来访问Web API。 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) 您还可以在Daemon应用程序中获取 daemon应用程序的代码示例(使用应用程序的身份访问Web API)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM