Jump to content

Recommended Posts

Posted

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

  • 2 weeks later...
  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

  • 10 months later...
Posted

I got the same issues and fixed.

Make sure the key values are matching

For 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_DEV

then you must encrypt the each property including the key values i.e encrypt "u=baji" and encrypt "r=ROLE_DEV"

 

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...