nizam27391 Posted November 27, 2014 Posted November 27, 2014 Hi all,I follow the tutorial based on this link https://community.jaspersoft.com/documentation/jasperreports-authentication-cookbook/v56/token-based-authentication#TokenDecryption.It works when I use the user which already in the jasperserver. But if the user is not in the system, I received and error saying nullpointerexception.If I removed the encryption, and just use plaintext, it just works charm even if the user is not yet created.Can I know and can someone please help me with this. Thanks
sajith.gunarathna Posted December 8, 2014 Posted December 8, 2014 Hi nazram,Can you put your config cml file here.That can be more helpful to solve the problem.
sajith.gunarathna Posted December 9, 2014 Posted December 9, 2014 Is this the error you getting ?? 2014-12-09 16:54:05,713 ERROR JSPreAuthenticatedUserDetailsService,http-/127.0.0.1:8180-1:159 - java.lang.IllegalArgumentException: Cannot pass null or empty values to constructor
shaikbaji4u Posted October 13, 2015 Posted October 13, 2015 I got the same issues and fixed.Make sure the key values are matchingFor Example:<entry key="username" value="u" /> <entry key="roles" value="r" />So while passing encrypted token, make sure you encrypted the key-value:I.e. For exampel: Non-encrypted token --> pp=u=baji|r=ROLE_DEVthen you must encrypt the each property including the key values i.e encrypt "u=baji" and encrypt "r=ROLE_DEV"
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