Hitachi Vantara Pentaho Community Forums
Results 1 to 4 of 4

Thread: Authentication of Pentaho Users of custom WebApp on BI Server

  1. #1
    Join Date
    Jun 2017
    Posts
    18

    Default Authentication of Pentaho Users of custom WebApp on BI Server

    I have created a simple servlet outside the pentaho folder whose job is the stream an excel to the browser. I have the following structure:

    tomcat/webapps/pentaho
    tomcat/webapps/createExcel

    How can I protect access to this servlet only to pentaho authenticated users?

    I read:
    http://wiki.pentaho.com/display/Serv...vices+Security
    https://help.pentaho.com/Documentati...R0/070/010/00A

    but I don't understand how to execute only when valid pentaho user is logged in.

    Can you guide me with java code...?

  2. #2
    Join Date
    Nov 2011
    Posts
    1,229

    Default

    Wouldn't it be easier to deploy that servlet as part of the pentaho web application?
    That way I think you get the authentication for free.
    Pedro Vale
    --
    CTools Product Development
    http://www.webdetails.pt

  3. #3
    Join Date
    Jun 2017
    Posts
    18

    Default

    Could you please help me understand how to do this. I created a folder classes under webapps/pentaho/WEB-INF and configured web.xml in the same folder to point to my classes and

    <servlet>
    <display-name>createExcel</display-name>
    <servlet-name>createExcel</servlet-name>
    <servlet-class>net.codejava.upload.CreateExcel</servlet-class>
    </servlet>

    <servlet-mapping>
    <servlet-name>createExcel</servlet-name>
    <url-pattern>/createExcel</url-pattern>
    </servlet-mapping>


    <servlet>
    <display-name>DownloadFile</display-name>
    <servlet-name>DownloadFile</servlet-name>
    <servlet-class>net.codejava.upload.DownloadFile</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>DownloadFile</servlet-name>
    <url-pattern>/DownloadFile</url-pattern>
    </servlet-mapping>

    But it always shows the unavailable.html ...

  4. #4
    Join Date
    Nov 2011
    Posts
    1,229

    Default

    Check the tomcat logs for further info. Your configuration seems correct at a first glance.

    You can also check tomcat docs to understand whether you need something else in the web.xml configuration
    Pedro Vale
    --
    CTools Product Development
    http://www.webdetails.pt

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.