简体   繁体   English

Grails-使用Spring Security插件通过UI登录时如何使用JWT

[英]Grails - How can I use JWT when login through UI using Spring Security Plugin

I need to know If I can use JWT in grails application using spring security plugin. 我需要知道是否可以使用Spring Security插件在grails应用程序中使用JWT。 I want to generate token store it in cookie and than use it to login. 我想生成令牌并将其存储在cookie中,然后使用它来登录。 Is it Possible through spring security plugin? 通过Spring Security插件可以吗?

Please checkout https://github.com/alvarosanchez/grails-spring-security-rest the rest security plugin. 请检出https://github.com/alvarosanchez/grails-spring-security-rest其余的安全插件。 It has support for JWT and is straight forward to configure. 它支持JWT,可以直接进行配置。 Be aware that there's a possible security issue with JWT (the user is serialized in the JWT token and deserialized without checking the existence of the user), I made a pull request for this. 请注意,JWT可能存在安全性问题(用户在JWT令牌中进行了序列化,并且在不检查用户是否存在的情况下进行了反序列化),为此我提出了请求请求。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM