简体   繁体   English

来自Grails的安全插件?

[英]Security Plugin from Grails?

I try find some simple security plugin from Grails . 我尝试从Grails找到一些简单的安全性插件。

And first of all, i want ask you: what plugin you can recommend? 首先,我想问你:您可以推荐什么插件?

I not need super powerful plugin. 我不需要超级强大的插件。 Its must be simply and for small application. 它必须简单且适用于小型应用程序。

Thanks. 谢谢。

I recommend Spring Security . 我建议使用Spring Security It is easy to configure, and very flexible. 它易于配置,并且非常灵活。 It can handle everything from simple login, to annotated access controls on methods, to various complicated login schemes. 它可以处理一切,从简单的登录到方法的带注释的访问控制,再到各种复杂的登录方案。

It does have a fairly complicated API, but there is plenty of documentation, and you can be sure others are using it. 它确实有一个相当复杂的API,但是有很多文档,您可以确保其他人正在使用它。

If you just want simple login, it is really easy to set up. 如果您只想简单登录,那么设置起来真的很容易。

More info here . 更多信息在这里

Per @robbbert suggestion, here is an alternative -- the Shiro plugin. 每@robbbert建议,这里是一个选择-在四郎插件。 I cannot speak to its reliability/community/expandibility. 我不能说它的可靠性/社区性/可扩展性。

We use Apache Shiro which is very simple to use and set up. 我们使用Apache Shiro ,它非常易于使用和设置。 It works by convention and supports both authentication and authorization. 它按照约定工作,并且支持身份验证和授权。

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

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