在不登录的Pentaho BI服务器报告 [英] Pentaho BI server report without Log in

查看:668
本文介绍了在不登录的Pentaho BI服务器报告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在DOTNET的应用程序中集成Pentaho的我的仪表板社区报告。现在我面临的一个问题。
   我希望报告未经Pentaho服务器要求进行认证,只需一次点击打开或登录。我试图找出一个解决方案,并发现,如果我在URL中使用用户名和密码,它会工作。所以,我没有这个

<一个href=\"http://192.168.2.122:8085/pentaho/api/repos/:home:Time%20Sheet%20Reports:Project%20Effort%20Analysis%20Dashboard.wcdf/generatedContent&userid=admin&password=password\" rel=\"nofollow\">http://192.168.2.122:8085/pentaho/api/repos/:home:Time%20Sheet%20Reports:Project%20Effort%20Analysis%20Dashboard.wcdf/generatedContent&userid=admin&password=password

但是,这不是为我工作和浏览器仍然要求登录凭据。我不明白什么地方出了错。
任何帮助以相同将是最AP preciated。

在此先感谢。
问候,
仅限Ritesh。


解决方案

您需要以下用户管理用户和放大器下设立;角色视角:

  anonymousUser(注意大写字母U)

您可以给该用户的密码;这仅仅是确保该用户映射在配置文件中使用的内部Pentaho的解决方案,用户/系统

确认匿名角色至少具有读取权限。

匿名角色应该已经存在的BA服务器中(这是默认的管理用户和角色视角的系统角色)

在公共创建文件夹:在我的情况OpenReports

选择了OpenReports文件夹,单击属性>单击共享>取消选中>继承文件夹的权限

请务必anonymousUser和作用匿名添加到它,他们至少读取权限

点击确定

复制一个分析报告,新OpenReports文件夹

验证anonymousUser和匿名角色的权限被继承;如果没有相应的添加。

停止BA服务器

找到以下文件:

<$p$p><$c$c>\\pentaho\\server\\biserver-ee\\pentaho-solutions\\system\\applicationContext-spring-security.xml

添加以下行:

  \\ A / i18n的。* \\ Z =无名氏,身份验证\\ A / JS / utils.js \\ Z =无名氏,身份验证\\ A / API /.*要求JS-cfg.js \\ Z =无名氏,身份验证\\ A / API /.* \\ Z =无名氏,身份验证\\ A / API /回购。* \\ Z =无名氏,身份验证\\ A / API /共UI /资源/.* \\ Z =无名氏,身份验证\\ A / API /共UI / UTIL /.* \\ Z =无名氏,身份验证

以下行开到OpenReports文件夹中的匿名访问,并且其内容

  \\ A / API /回购*公开。* openreports。* \\ Z =无名氏,身份验证\\ A / API /回购*公开。* openreports。* /观众/.*​​ \\ Z =无名氏,身份验证\\ A / API /回购*公开。* openreports。* /通用的UI /.* \\ Z =无名氏,身份验证\\ A / API /回购*公开。* openreports。* /共UI / UTIL /.* \\ Z =无名氏,身份验证后:\\ A / JS /要求-cfg.js \\ Z =无名氏,身份验证之前:\\ A /内容/数据访问/资源/ GWT /.*的css \\ Z =无名氏,身份验证

添加以下行:(这些开到分析仪插件URL访问)

  \\ A /内容/ Pentaho的-CDF /.* \\ Z =无名氏,身份验证\\ A /内容/共UI /.* \\ Z =无名氏,身份验证\\ A /内容/分析仪/.* \\ Z =无名氏,身份验证\\ A /内容/分析仪/脚本/.* \\ Z =无名氏,身份验证

请一定要添加这些行:

 后:\\ A /内容/数据访问/资源/ GWT /.*的css \\ Z =无名氏,身份验证之前:\\ A / webcontext.js。* \\ Z =无名氏,身份验证

找到下面

 更改从以下行:\\ A / API /.* \\ Z =身份验证\\ A /插件/.* \\ Z =身份验证至:\\ A / API /.* \\ Z =无名氏,身份验证\\ A /插件/.* \\ Z =无名氏,身份验证

保存文件

重新启动服务器BA

您应该能够成功调用由URL的报告,而无需在登录页面进行验证;这里是一个示例网址:

<一个href=\"http://192.168.2.122:8085/pentaho/api/repos/:public:OpenReports:Leading%20Product%20Lines%20(pivot%20table).xanalyzer/editor\">http://192.168.2.122:8085/pentaho/api/repos/:public:OpenReports:Leading%20Product%20Lines%20(pivot%20table).xanalyzer/editor

I need to integrate my Pentaho Community dashboard report in a DotNet application. Now I am facing a problem. I want the report to open on single click without the Pentaho server asking for authentication or log in. I tried to find out a solution and found that if I use userid and password in the url, it will work. So I did this

http://192.168.2.122:8085/pentaho/api/repos/:home:Time%20Sheet%20Reports:Project%20Effort%20Analysis%20Dashboard.wcdf/generatedContent&userid=admin&password=password

But this is not working for me and the browser is still asking for login credentials. I don't understand what went wrong. Any help with the same will be most appreciated.

Thanks in advance. Regards, Ritesh.

解决方案

You need the following user to be created under the Manage Users & Roles Perspective:

anonymousUser (notice the uppercase U)

You can give this user any password; this is only to make sure this user maps the user used in the configuration files inside pentaho-solutions/system

Make sure the Anonymous role has at least the Read Permission.

The Anonymous role should exist already in the BA Server (this is by default a system role in the Manage Users and Roles Perspective)

Under Public create a folder: in my case "OpenReports"

Select the "OpenReports" folder click properties > click Share > Uncheck > Inherits folder permissions

Make sure to add anonymousUser and role anonymous to it and they at least the Read permission

Click OK

Copy an Analyzer report to the new OpenReports folder

Verify the permissions for anonymousUser and Anonymous role were inherited; if not add them accordingly.

Stop BA Server

Locate the following file:

\pentaho\server\biserver-ee\pentaho-solutions\system\applicationContext-spring-security.xml

Add the following lines:

\A/i18n.*\Z=Anonymous,Authenticated

\A/js/utils.js\Z=Anonymous,Authenticated

\A/api/.*require-js-cfg.js\Z=Anonymous,Authenticated

\A/api/.*\Z=Anonymous,Authenticated

\A/api/repos.*\Z=Anonymous,Authenticated

\A/api/common-ui/resources/.*\Z=Anonymous,Authenticated

\A/api/common-ui/util/.*\Z=Anonymous,Authenticated

The following lines open the anonymous access to the OpenReports folder and its contents

\A/api/repos.*public.*openreports.*\Z=Anonymous,Authenticated

\A/api/repos.*public.*openreports.*/viewer/.*\Z=Anonymous,Authenticated

\A/api/repos.*public.*openreports.*/common-ui/.*\Z=Anonymous,Authenticated

\A/api/repos.*public.*openreports.*/common-ui/util/.*\Z=Anonymous,Authenticated



after:

\A/js/require-cfg.js\Z=Anonymous,Authenticated

and before:

\A/content/data-access/resources/gwt/.*css\Z=Anonymous,Authenticated

Add the following lines: (these open the URL access to the Analyzer plugin)

\A/content/pentaho-cdf/.*\Z=Anonymous,Authenticated

\A/content/common-ui/.*\Z=Anonymous,Authenticated

\A/content/analyzer/.*\Z=Anonymous,Authenticated

\A/content/analyzer/scripts/.*\Z=Anonymous,Authenticated 

Make sure to add these lines:

After:

\A/content/data-access/resources/gwt/.*css\Z=Anonymous,Authenticated

and before:

\A/webcontext.js.*\Z=Anonymous,Authenticated

Locate the following

Change the following lines from:

\A/api/.*\Z=Authenticated

\A/plugin/.*\Z=Authenticated

to:

\A/api/.*\Z=Anonymous,Authenticated

\A/plugin/.*\Z=Anonymous,Authenticated

Save the file

Restart your BA Server

You should be able to successfully call the report by URL without having to authenticate through the login page; here is a sample URL:

http://192.168.2.122:8085/pentaho/api/repos/:public:OpenReports:Leading%20Product%20Lines%20(pivot%20table).xanalyzer/editor

这篇关于在不登录的Pentaho BI服务器报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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