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