ByPass Login credentials in jasper server

1

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

 

pentaho's picture
57
Joined: Jan 14 2009 - 10:18pm
Last seen: 11 years 1 month ago

14 Answers:

0

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
pentaho's picture
57
Joined: Jan 14 2009 - 10:18pm
Last seen: 11 years 1 month ago
0

Couldn't you also pass the j_username and j_password as parameters in the URL?

carminez's picture
Joined: Oct 2 2008 - 12:06pm
Last seen: 11 years 4 months ago
0

Hi,

No need to pass any parameters..........

without parameters it works........

 

pentaho's picture
57
Joined: Jan 14 2009 - 10:18pm
Last seen: 11 years 1 month ago
0

Hi,

I would like to know if the solution you posted will work with JasperServer 3.7?

Thanks,

 

Joefer

joftingson's picture
Joined: Mar 24 2010 - 9:25pm
Last seen: 9 years 11 months ago
1

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
glapira's picture
20
Joined: Mar 25 2010 - 5:56am
Last seen: 9 years 11 months ago
0
Thanks for the solution. Its working. In addition, is there a way to hide the username and the password?
joftingson's picture
Joined: Mar 24 2010 - 9:25pm
Last seen: 9 years 11 months ago
0
Hi,
For me it don't work with JasperServer 3.7.
I try this today
cmenaldo's picture
Joined: Jun 3 2010 - 5:41am
Last seen: 6 years 11 months ago
0
Any results from your test?

I've the same need to call a report by passing parameters but not passing any user&password
asterix58's picture
Joined: Sep 29 2010 - 5:07am
Last seen: 9 years 4 months ago
0

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>
 
</td></tr></tbody></table>
anaganirakesh's picture
Joined: Jun 13 2012 - 10:30pm
Last seen: 7 years 8 months ago
0
can any one give me quick reply will be appreciated
anaganirakesh's picture
Joined: Jun 13 2012 - 10:30pm
Last seen: 7 years 8 months ago
0

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
shatad0101's picture
Joined: Jun 22 2011 - 10:44pm
Last seen: 5 years 3 months ago
0

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
shatad0101's picture
Joined: Jun 22 2011 - 10:44pm
Last seen: 5 years 3 months ago
0

 I have similar requirement, any help is ahighly appreciated.

Thanks.

lokinindi18's picture
Joined: Jun 28 2012 - 10:51am
Last seen: 7 years 7 months ago
0

Did anyone find a solution for url login and hiding the credential params?

steelwall's picture
Joined: Aug 22 2012 - 6:37am
Last seen: 7 years 5 months ago
Feedback