custom SSO in jasper using tokenbase authentication

hi, i'm trying to implement SSO in jasper using Token based authentication.The user is authenticated in external application and token is send via http header. I need to read the header and get the respective user and his roles and load jasper. I followed the procedure mentioned in jasper cookbook v6.0.1.but unable to configure those beans in "applicationContext-externalAuth-Preauth.xml". i want to have my custom jars for authenticating token and redirecting him to load jasper according to his roles. While tried to redirect to jasper after configuring .i'm getting (error:404 jasperserver-pro not found) in browser.Please help me in configuring and developing custom jars for Token base authenticaton thanks in advance.
sandeep.hari's picture
Joined: Aug 20 2015 - 12:07am
Last seen: 6 years 8 months ago

1 Answer:

Just follow the instrucciones on http://community.jaspersoft.com/documentation/tibco-jasperreports-server-authentication-cookbook/v610/token-based-authentication

1 - Stop Tomcat

2- Copy from the install samples folder sample-applicationContext-externalAuth-preauth[-mt].xml to webapps/jasperserver[-pro]/WEB_INF/applicationContext-externalAuth-preauth.xml

3- Edit /applicationContext-externalAuth-preauth.xml and configure the token format to your needs http://community.jaspersoft.com/documentation/tibco-jasperreports-server-authentication-cookbook/v610/token-based-authentication#Configur , is always better to first try the plain text fromat that comes in the sample to see that all is OK

4- If you go by encrypting the token (You SHOULD!!) then create your decryption class http://community.jaspersoft.com/documentation/tibco-jasperreports-server-authentication-cookbook/v610/token-based-authentication#TokenDecryption

marianol's picture
15724
Joined: Sep 13 2011 - 8:04am
Last seen: 4 years 5 months ago
Feedback
randomness