pentaho Posted January 15, 2009 Share Posted January 15, 2009 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/MyReportsThe 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.htmlIs there any way can i by pass the login page(login name & password) and directly acces the above url...I would appreciate any help.....Thankspentaho Link to comment Share on other sites More sharing options...
pentaho Posted January 15, 2009 Author Share Posted January 15, 2009 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. Right click the MyReport folder & Assign ROLE_ANONYMOUS read only permission. Edit the applicationContent-security.xml as followsEdit 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> Restart JasperServer. Try to access the Report URL Post Edited by pentaho pentaho at 01/16/09 05:21 Link to comment Share on other sites More sharing options...
carminez Posted January 15, 2009 Share Posted January 15, 2009 Couldn't you also pass the j_username and j_password as parameters in the URL? Link to comment Share on other sites More sharing options...
pentaho Posted January 16, 2009 Author Share Posted January 16, 2009 Hi,No need to pass any parameters..........without parameters it works........ Link to comment Share on other sites More sharing options...
joftingson Posted April 27, 2010 Share Posted April 27, 2010 Hi,I would like to know if the solution you posted will work with JasperServer 3.7?Thanks, Joefer Link to comment Share on other sites More sharing options...
glapira Posted April 27, 2010 Share Posted April 27, 2010 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 More sharing options...
joftingson Posted April 27, 2010 Share Posted April 27, 2010 Thanks for the solution. Its working. In addition, is there a way to hide the username and the password? Link to comment Share on other sites More sharing options...
cmenaldo Posted June 10, 2010 Share Posted June 10, 2010 Hi,For me it don't work with JasperServer 3.7.I try this today Link to comment Share on other sites More sharing options...
asterix58 Posted September 29, 2010 Share Posted September 29, 2010 Any results from your test? I've the same need to call a report by passing parameters but not passing any user&password Link to comment Share on other sites More sharing options...
anaganirakesh Posted June 14, 2012 Share Posted June 14, 2012 Hii 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 filein side the C:\Program Files\jasperreports-server-cp-4.5.0\apache-tomcat\webapps\jasperserver\WEB-INF\libbut 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 ThanksRakesh 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 More sharing options...
anaganirakesh Posted June 14, 2012 Share Posted June 14, 2012 can any one give me quick reply will be appreciated Link to comment Share on other sites More sharing options...
shatad0101 Posted June 29, 2012 Share Posted June 29, 2012 HiI 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 More sharing options...
shatad0101 Posted June 29, 2012 Share Posted June 29, 2012 HiI 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 More sharing options...
lokinindi18 Posted June 29, 2012 Share Posted June 29, 2012 I have similar requirement, any help is ahighly appreciated.Thanks. Link to comment Share on other sites More sharing options...
steelwall Posted August 23, 2012 Share Posted August 23, 2012 Did anyone find a solution for url login and hiding the credential params? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now