I am trying to add security to my web application using JWT in Scalatra. At the moment I am using Scentry and I have the User-Password and RememberMe strategies defined and working. My intention is to change the RememberMe strategy, which currently works with cookies, for an authentication with JWT.
I found this implementation that I can incorporate using the json4s extension ( example ) but I'm not sure how to include it in my code:
Can I simply replace the cookie checks with the JWT checks with the functions in the example?
How should I access the JWT?