如何在pentaho bi url中传递登录凭证

时间:2014-03-20 06:38:26

标签: pentaho pentaho-cde

Pass parameter to pentaho CDE report

使用GET方法的请求参数工作正常,但我不想在URL中显示凭据,post方法无法正常工作

requestParameterProcessingFilter : http://jira.pentaho.com/browse/BISERVER-10708

<html>
<form action="http://localhost:8080/pentaho/api/repos/ublic:Company:Reporting:Test:Test2.prpt/report?&output-target=pageable%2Fpdf" method="post">
<input type="hidden" name="userid" id="userid" value="admin"/>
<input type="hidden" name="password" id="password" value="password"/>
<input type="submit" value="Submit">
</form>
</html> 

2 个答案:

答案 0 :(得分:0)

我不希望这样做。

您应该考虑授予对Pentaho的匿名访问权限。你可以在信息中心找到它。

答案 1 :(得分:0)

我不确定这会有所帮助,但您可以尝试使用Authorization标头。标题的值为"Basic " + Base64.encode64(username + ":" + password)