Stateless JWT not working in multi-server setup

39 views
Skip to first unread message

Chad Retz

unread,
May 25, 2016, 1:52:15 PM5/25/16
to Silhouette
When I create a token on one server responding to DNS and then use it on another server responding to the same DNS host (with the same settings, just different A records) the token does not validate. I read https://groups.google.com/forum/#!searchin/play-silhouette/jwt/play-silhouette/s65vP3mk1To but I pass None as the DAO. Local testing shows that it does resolve even after server restart, it's the different hosts that seem to be the problem.

Any ideas? I am currently debugging this myself and will update if I find the answer. Thanks.

Chad Retz

unread,
May 25, 2016, 2:10:38 PM5/25/16
to Silhouette
For the record, I have overridden the auth service per https://groups.google.com/d/msg/play-silhouette/9gYkHUybzuo/VtRuLwuPHwAJ. But that should not make it server specific.

Christian Kaps

unread,
May 30, 2016, 7:31:52 AM5/30/16
to Silhouette
Hi,

do you store an encrypted subject in the authenticator? Maybe the application secret isn't the same?

Best regards,
Christian

Chad Retz

unread,
May 31, 2016, 10:51:56 AM5/31/16
to Silhouette
I do store an encrypted subject. The application secret is the same across both instances (I reuse the crypto secret, e.g. configuration.getString("play.crypto.secret").get). Sorry, I have not found time to debug this further to see which step does not validate.

Chad
Reply all
Reply to author
Forward
0 new messages