Welcome to Headwind MDM Q&A, where you can ask questions and receive answers from other members of the community.

Please do not post bug reports, missing feature requests, or demo inquiries. If you have such an inquiry, submit a contact form.

0 votes

Hello,

I created a Tomcat cluster to manage my Headwind server. 

Unfortunately, I am having a problem with the Rest API and JWT authentication, which does not work in all cases because the instances do not share the same Secret JWT key

Is there a way that I have not seen to allow this koken to be shared? Or do I just need to make a change in the TokenProvider to allow sharing?

Thanks for helping.

ago by (150 points)

1 Answer

0 votes
 
Best answer
You can move the JWT secret key to the configuration (source code change is required), so you can set it manually and make it the same on both instances.
ago by (43.7k points)
selected ago by
Yes, that’s what I was afraid of and wanted to avoid, because it means I’ll have to maintain all my changes, and version upgrades will be more complicated.
I’ll look into submitting a PR.
...