嵌套Pentaho BIServer 文件預覽頁面,免密登陸

iframe嵌套:

第一種方式:

    頁面地址:http://ip:port/pentaho/api/repos/<path>/viewer?userid=<用戶名>&password=<密碼>

第二種方式:

    頁面地址:http://ip:port/pentaho/api/repos/<path>/viewer?userid=<用戶名>&password=<加密後的密碼>

    密碼加密的方式:

        <1> 引入jar包 kettle-core-8.1.0.6-682.jar

        <2> 使用KettleTwoWayPasswordEncoder類中的encode方法生成加密串

    示例:

        http://ip:port/pentaho/api/repos/:home:leo:test.prpt/viewer?userid=leo&password=Encrypted 2be98afc86aa7f2e4cb79ff228dc6fa8c

 

注:kettle-core-8.1.0.6-682.jar下載鏈接:https://pan.baidu.com/s/1BK4Fsb30xuSC-vjQQJ1wGg

這種方式的前提需要修改Pentaho BIserver配置以支持免密登陸:

打開 pentaho-solutions\system 路徑下的 security.properties,修改requestParameterAuthenticationEnabled 配置項爲true

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章