Grails 的 Spring Security 插件所需的 UI 集成示例

发布于 2024-09-25 12:15:19 字数 382 浏览 0 评论 0 原文

我一直在使用 Grails 应用程序,出于安全目的,使用了 Spring Security 核心。

现在他们还提供 UI 安全性。所以我已经安装了 http://grails.org/plugin/spring-security-ui< 的插件/a> 在我也配置了 spring security 核心的项目中。

现在我还没有找到任何视频广播或任何示例链接,我可以在其中找到如何使用我现有的项目对其进行配置。

所以想要一些示例应用程序或链接,以便我可以让 spring security ui 在我的项目中工作。

提前致谢...

I have been working with grails application and for security purpose used the spring security core.

Now with that they are also providing the UI stuffs of security. So I have installed the plugin from http://grails.org/plugin/spring-security-ui in the project where I have configured spring security core too.

Now I have not found any videocast or any sample links where I can find that how can it be configured with my existing project.

So want some sample application or links so that I can get the spring security ui working in my project.

Thanks in advance...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

遇见了你 2024-10-02 12:15:19

伯特的文档确实非常出色(代码也是如此,顺便说一句,如果有人在数的话)。但实际上如何集成 Grails Spring Security UI 插件并不是那么明显。尝试这个方法(使用 Grails 1.3.5 进行测试):

  1. 不要下载 Grails Spring Security ACL 插件文档中描述的 grails-contacts ZIP 文件
  2. 使用 git clone http 获取示例应用程序: //github.com/grails-plugins/grails-spring-security-acl.git 相反。这将为您提供所需控制器的链接列表。相信我:你想这样做。
  3. 进行 grails 升级并对所有内容说“是”
  4. ACL 演示应用程序应使用 grails run-app 按原样运行
  5. 升级 spring-security-core 插件:说 grails install-plugin spring-security-core
  6. 现在是带有 grails install-plugin spring-security-acl 的 spring-security-acl 插件
  7. 现在你一直想要的,grails install -plugin spring-security-ui
  8. 并尝试 grails run-app
  9. 没有看到您想要的控制器?您可能拥有 ZIP 文件,而不是最新的 git 克隆。

请告诉我你是怎么做的。

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):

  1. Don't download the grails-contacts ZIP file described in the Grails Spring Security ACL plugin documentation
  2. Get the sample application using 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.
  3. Do a grails upgrade and say yes to everything
  4. The ACL demo app should run as-is with grails run-app
  5. Upgrade the spring-security-core plugin: say grails install-plugin spring-security-core
  6. Now the spring-security-acl plugin with grails install-plugin spring-security-acl
  7. Now what you wanted all along, grails install-plugin spring-security-ui
  8. And try grails run-app
  9. Don't see the controllers you're after? You probably have the ZIP file and not the latest git clone.

Please let me know how you make out.

橘香 2024-10-02 12:15:19

除了 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文