Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
所以我试图通过在 Scalatra 中使用 JWT 来保护我的 Web 应用程序。目前,我将 Scentry 与 User-Password 和 RememberMe 策略一起使用,我的目的是将 RememberMe 策略中基于 cookie 的身份验证与 JWT 身份验证交换。
我发现这个实现可以与 json4s ( example ) 一起使用,但我不确定如何在我的代码中包含这些功能。我可以简单地切换在 RememberMe 中使用 cookie 完成的验证以进行 JWT 验证吗?
在您提供的同一个存储库中,现在有代码示例。你可以检查这个链接。