PowerBI 中的自定义身份验证 [英] Custom Authentication in PowerBI

查看:205
本文介绍了PowerBI 中的自定义身份验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一种结合 Power BI 身份验证和 Web 应用程序的解决方案.我们使用现有 Web 应用程序对我们的用户进行身份验证,并让他们查看 Power BI 门户中的仪表板和报告,现有用户是没有内部 AD 帐户的外部客户.

I'm looking a solution to combine Power BI authentication and a web application. We authenticate our users using existing web application and let them see the dashboard and reports in Power BI portal, the existing users are external customers who don't have internal AD accounts.

以下解决方案将始终将用户重定向到登录页面.https://github.com/Microsoft/Reporting-Services/tree/master/自定义安全示例

Following solution will redirect user to a login page always. https://github.com/Microsoft/Reporting-Services/tree/master/CustomSecuritySample

但我需要的是,一旦用户使用我们的 Web 应用程序通过身份验证,Power BI 就让用户无需任何身份验证即可查看仪表板.

But what I need is that once the user has been authenticated using our web application, Power BI let the users see the dashboards without any more authentication.

推荐答案

您需要在应用程序中嵌入报告,实现应用程序自己的数据" 场景.基本上,您的应用使用单个 Power BI 帐户(主帐户)来访问报告,而您的用户在您的应用程序中以另一种方式进行身份验证.Microsoft 提供了很好的示例如何做到这一点.

You need to embed reports in your application, implementing "app own data" scenario. Basically, your app uses a single Power BI account (master account) to access the reports, while your users are authenticated in your application in another way. Microsoft provides good examples how to do this.

本质上,您需要使用 ADAL 验证您的主帐户并获取访问令牌.拥有此访问令牌,您可以使用 Power BI REST API 要枚举某些工作区中的报告、仪表板或磁贴(或枚举所有工作区),请获取 embedUrl 某些报告(或仪表板或磁贴),生成 访问令牌并将其嵌入到您的应用程序中.在这种情况下,您的用户根本不需要 Power BI 帐户.

Essentially, you need to use ADAL to authenticate your master account and get an access token. Having this access token, you can use Power BI REST API to enumerate the reports, dashboards or tiles in some workspace (or to enumerate all workspaces), obtain the embedUrl of some report (or dashboard, or tile), generate an access token for it and embed it in your application. In this case your users doesn't need Power BI accounts at all.

这篇关于PowerBI 中的自定义身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆