Jump to content
We've recently updated our Privacy Statement, available here ×

ByPass Login credentials in jasper server


pentaho

Recommended Posts

Hi,

I have created a report in jasper server using .jrxml file(created using ireport).

http://localhost:8001/jasperserver/flow.html?_flowId=viewReportFlow&reportUnit=/reports/MyReports/TopTenRequests&standAlone=true&ParentFolderUri=/reports/MyReports

The above link will shows the created report, before accessing this page i need to enter login name & password for jasperserver (see the below URL)........

http://localhost:8080/jasperserver/login.html

Is there any way can i by pass the login page(login name & password) and directly acces the above url

...

I would appreciate any help.....

Thanks

pentaho

 

Link to comment
Share on other sites

  • Replies 14
  • Created
  • Last Reply

Top Posters In This Topic

Hi,

Got a solution from the previous post           

Post Name & Date 

Direct url access to reports with no auth. 10/15/2008 10:22

Login as jasperadmin/jasperadmin(password)

Created a new folder inside Report folder(MyReports). created simple reports inside Myreport folder.

  1. Right click the MyReport folder & Assign ROLE_ANONYMOUS read only permission.
  2. Edit the  applicationContent-security.xml as follows

Edit 1:

     <bean id="filterInvocationInterceptor" class="org.acegisecurity.intercept.web.FilterSecurityInterceptor">
                      .......

                      .......
                   /flow.html=ROLE_USER,ROLE_ANONYMOUS

                  /fillparams.html=ROLE_USER,ROLE_ANONYMOUS

                  /fileview/**=ROLE_USER,ROLE_ANONYMOUS

                 /reportimage/**=ROLE_USER,ROLE_ADMINISTRATOR

 

Edit 2:

    <bean id="anonymousProcessingFilter" class="org.acegisecurity.providers.anonymous.AnonymousProcessingFilter">
        <property name="key"><value>foobar</value></property>
          <!--  <property name="userAttribute"><value>anonymousUser,ROLE_ANONYMOUS</value></property> --> // comment this line & add the below line
        <property name="userAttribute"><value>anonymousUser,ROLE_USER</value></property>
    </bean>

 

 

Edit 3:

 <bean id="flowVoter" class="com.jaspersoft.jasperserver.war.security.FlowRoleAccessVoter">
        <property name="flowAccessAttribute" value="FLOW_ACCESS"/>
        <property name="flowDefinitionSource">
                <value>
                       
                      
                        *=ROLE_USER,ROLE_ADMINISTRATOR,ROLE_ANONYMOUS  // Changes(Add  ROLE_ANONYMOUS )
                </value>

 

  1. Restart JasperServer.
  2. Try to access the Report URL

 



Post Edited by pentaho pentaho at 01/16/09 05:21
Link to comment
Share on other sites

  • 1 year later...

Yes, you can pass parameters through the URL. I have an example that works with:

---

VREPORTURL := 'http://[iP ADDRESS]:8085/jasperserver/flow.html?_flowId=viewReportFlow'||
                               '&reportUnit=%2F[DIRECTORY NAME]%2F[sUBDIRECTORY NAME]%2F[REPORT NAME]'||
                               '&[PARAMETER 1] =' ||
                               'value_of_parameter_1' ||                                         
                               '&[PARAMETER 2] =' ||      
                               'value_of_parameter_2' ||
                               '&output=' ||               
                               'pdf' ||
                               '&j_username=jasperadmin&j_password=jasperadmin';

 

Replace [DIRECTORY NAME]

                [sUBDIRECTORY NAME]

                [REPORT NAME]

                [PARAMETER 1]

                [PARAMETER 2]

as needed for your report.

I'm using the code in a PL/SQL procedure so thats why I have the URL stored in variable VREPORTURL.

 



Post Edited by glapira at 04/27/2010 17:08
Link to comment
Share on other sites

  • 1 month later...
  • 3 months later...
  • 1 year later...

Hi

i want to pass the hidden parameters to the post request in jasperserver 4.5 i added the following jar files in jaspersever

params Auth Filter. jar file

in side the C:\Program Files\jasperreports-server-cp-4.5.0\apache-tomcat\webapps\jasperserver\WEB-INF\lib

but i need to edit the application contex-security.xml file ,but what below menction code is not available for that xml file

C:\Program Files\jasperreports-server-cp-4.5.0\apache-tomcat\webapps\jasperserver\WEB-INF\applicationContext-security.xml,but i was unable to find bean id in the applicationcontex-security.xml of jasper server 4.5

 

 

 

 

can any suggest me will be appreceate

Thanks

Rakesh

 

 

Code:
<bean id="filterChainProxy" class="org.acegisecurity.util.FilterChainProxy">        <property name="filterInvocationDefinitionSource">            <value>                CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON                PATTERN_TYPE_APACHE_ANT                /xmla=httpSessionContextIntegrationFilter,basicProcessingFilter,JIAuthenticationSynchronizer,anonymousProcessingFilter,basicAuthExceptionTranslationFilter,filterInvocationInterceptor                /services/**=httpSessionContextIntegrationFilter,portletAuthenticationProcessingFilter,basicProcessingFilter,JIAuthenticationSynchronizer,anonymousProcessingFilter,basicAuthExceptionTranslationFilter,filterInvocationInterceptor                /**=httpSessionContextIntegrationFilter,userPreferencesFilter,authenticationProcessingFilter,userPreferencesFilter,basicProcessingFilter,requestParameterAuthenticationFilter,JIAuthenticationSynchronizer,anonymousProcessingFilter,exceptionTranslationFilter,filterInvocationInterceptor,switchUserProcessingFilter            </value>        </property>    </bean>	<bean id="requestParameterAuthenticationFilter" class="com.jaspersoft.jasperserver.war.util.RequestParameterAuthenticationFilter">        <property name="authenticationManager"><ref local="authenticationManager"/></property>        <property name="authenticationFailureUrl"><value>/loginerror.html</value></property>	</bean>
Link to comment
Share on other sites

  • 3 weeks later...

Hi


I am also trying to ByPass Login credentials in jasper server 4.5, so user can login directly without entering any username and password, this I have done by passing username and password directly in URL

         *http://localhost:8080/jasperserver/flow.html?_flowId=searchFlow&   
          j_username=jasperadmin&j_password=jasperadmin *

Now I want to hide these user credentials, so nobody can see the username and password.

How can I hide these credentials?



Post Edited by shatad0101 at 06/29/2012 14:25
Link to comment
Share on other sites

Hi

I am also trying to ByPass Login credentials in jasper server 4.5, so user can login directly without entering any username and password, this I have done by passing username and password directly in URL

         *http://localhost:8080/jasperserver/flow.html?_flowId=searchFlow&   
          j_username=jasperadmin&j_password=jasperadmin *

Now I want to hide these user credentials, so nobody can see the username and password.

How can I hide these credentials?



Post Edited by shatad0101 at 06/29/2012 14:27
Link to comment
Share on other sites

  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...