简体   繁体   English

Power BI 报表服务器自定义身份验证:IIS,在不同机器上托管网页和 PBIRS

[英]Power BI Report Server Custom Authentication: IIS that host the webpage and PBIRS in different machines

I am trying to do custom authentication in my solution that will use Power BI Report Server.我正在尝试在将使用 Power BI 报表服务器的解决方案中进行自定义身份验证。 The user will see the report through an IFrame pointing to the Report hosted in PBIRS.用户将通过指向 PBIRS 中托管的报告的 IFrame 查看报告。 We want to use CustomAuthentication, only user logged in the site will see the report.我们要使用 CustomAuthentication,只有登录站点的用户才能看到报告。

Is It possible to the IIS that will host my Asp page and the PBIRS are in different machines? IIS 是否可以托管我的 Asp 页面并且 PBIRS 位于不同的机器中? Or they need to be in the same machine?或者他们需要在同一台机器上?

I think is not possible, because in one tutorial they said that the IIS web.config and the PBIRS web.config need to have the same machine keys;我认为不可能,因为在一个教程中他们说 IIS web.config 和 PBIRS web.config 需要具有相同的机器密钥; but I need confirmation.但我需要确认。

Thank You谢谢你

Conclusion: It is possible, taken that both machine hard code the same machine key in the web config, and the cookie can be shared.结论:有可能,在web配置中两台机器硬编码相同的机器密钥,并且可以共享cookie。

You can refer https://stackoverflow.com/a/61456301/7040747 , this is a solution on how you connect them together.您可以参考https://stackoverflow.com/a/61456301/7040747 ,这是有关如何将它们连接在一起的解决方案。

C# authenticate a user by decrypting the login cookie using the Machine Key. C# 通过使用机器密钥解密登录 cookie 对用户进行身份验证。 So if your Power BI Report Server (PBIRS) is able to receive the login credential cookie from your ASP, and able to validate the cookie by successfully decrypting it, PBIRS will then be able to authenticate the user who entered the system.因此,如果您的 Power BI 报表服务器 (PBIRS) 能够从您的 ASP 接收登录凭据 cookie,并且能够通过成功解密来验证 cookie,那么 PBIRS 将能够对进入系统的用户进行身份验证。

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

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