PBIRS自定义身份验证cookie被忽略

时间:2020-06-18 22:23:46

标签: c# sql-server authentication owin power-bi-report-server

我正在使用IAuthenticationExtension2和IAuthorizationExtension扩展实现自定义身份验证模块。我配置了两个直通Cookie:

  <PassThroughCookies>
    <PassThroughCookie>cookie1</PassThroughCookie>
    <PassThroughCookie>cookie2</PassThroughCookie>
  </PassThroughCookies>

打开PBIRS报告浏览器时,我能够检索到它们。它由RSPortal系统进程中的IAuthenticationExtension2扩展进行处理。

但是当我打开一些报告时,我只能检索第一个cookie,而第二个cookie不存在。该报告在iframe中打开,并由RSPowerBI系统进程中的IAuthenticationExtension2扩展程序处理。

我设法发现在第一种和第二种情况下会创建单独的OwinContext对象。所以我不能使用OwinContext环境。

通过RSPowerBI打开报表时,是否有办法在IAuthenticationExtension2中同时获取两个cookie值?

0 个答案:

没有答案