Grails 的 Spring Security 插件所需的 UI 集成示例
我一直在使用 Grails 应用程序,出于安全目的,使用了 Spring Security 核心。
现在他们还提供 UI 安全性。所以我已经安装了 http://grails.org/plugin/spring-security-ui< 的插件/a> 在我也配置了 spring security 核心的项目中。
现在我还没有找到任何视频广播或任何示例链接,我可以在其中找到如何使用我现有的项目对其进行配置。
所以想要一些示例应用程序或链接,以便我可以让 spring security ui 在我的项目中工作。
提前致谢...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您尝试过在线文档吗?这是非常彻底的
https://github .com/grails-plugins/grails-spring-security-ui/tree/master/src/docs/guide
did you try the online documentation? It is very thorough
https://github.com/grails-plugins/grails-spring-security-ui/tree/master/src/docs/guide
伯特的文档确实非常出色(代码也是如此,顺便说一句,如果有人在数的话)。但实际上如何集成 Grails Spring Security UI 插件并不是那么明显。尝试这个方法(使用 Grails 1.3.5 进行测试):
grails 升级
并对所有内容说“是”grails run-app
按原样运行grails install-plugin spring-security-core
grails install-plugin spring-security-acl
的 spring-security-acl 插件grails install -plugin spring-security-ui
grails run-app
请告诉我你是怎么做的。
Burt's docs are indeed excellent (code too, BTW, if anyone's counting). But it's not actually all that obvious how to integrate the Grails Spring Security UI plugin. Try this recipe (tested with Grails 1.3.5):
git clone http://github.com/grails-plugins/grails-spring-security-acl.git
instead. That gives you a list of the links to the controllers you need. Trust me: you want to do this.grails upgrade
and say yes to everythinggrails run-app
grails install-plugin spring-security-core
grails install-plugin spring-security-acl
grails install-plugin spring-security-ui
grails run-app
Please let me know how you make out.
除了 Aaron 已经发布的官方文档之外,我还找到了本教程: 自定义 Grails Spring Security UI 插件很有用。
Aside from official docs which Aaron already posted, I also found this tutorial: Customizing The Grails Spring Security UI Plugin useful.