简体   繁体   English

Grails Spring安全Openid

[英]Grails Spring Security Openid

I am trying to get the simple tutorial app working with Grails 2.3 and spring-security-openid:2.0-RC1 我正在尝试使用与Grails 2.3和spring-security-openid:2.0-RC1一起使用的简单教程应用程序

Initially i was not able to to execute the s2-quickstart and after some research , I got to know i first had to compile the project so 最初我无法执行s2-quickstart,经过一番研究,我知道我首先必须编译该项目,因此

after creating the project , moved into the folder and then ran compile ( after i added the plugin lines in the buildconfig.groovy) . 创建项目后,将其移至该文件夹中,然后进行编译(在我在buildconfig.groovy中添加了插件行之后)。 Steps i have done in order .. 我按顺序完成的步骤..

  1. Grails create-app testproject Grails创建应用程序testproject
  2. update the buildconfig.groovy to include the plugin 更新buildconfig.groovy以包含插件
  3. cd testproject cd测试项目
  4. grails s2-quickstart com.testproject User Role grails s2-quickstart com.testproject用户角色
  5. grails s2-init-openid ----> this does not create the openIDController classes and the gsps grails s2-init-openid ---->这不会创建openIDController类和gsps

I keep seeing the following Script 'S2InitOpenid' not found, did you mean: 1) Init 2) S2CreateOpenid 3) PluginInfo_ 4) UninstallPlugin 5) S2CreatePersistentToken Please make a selection or enter Q to quit: q 我一直看到未找到以下脚本'S2InitOpenid',您的意思是:1)初始化2)S2CreateOpenid 3)PluginInfo_ 4)UninstallPlugin 5)S2CreatePersistentToken请选择一个选项或输入Q退出:q

Appreciate any and all help .. 感谢所有帮助..

Thanks in advance 提前致谢

You don't need to run the s2-init-openid in the 2.0 version of the plugin, and it has been removed. 您无需在插件的2.0版本中运行s2-init-openid ,它已被删除。 The files that were copied to your application are now included in the plugin itself. 复制到您的应用程序的文件现在包含在插件本身中。

Just run s2-quickstart then s2-create-openid , and s2-create-persistent-token if you want to support remember-me. 如果要支持“记住我”,只需运行s2-quickstart然后s2-create-openids2-create-persistent-token This is all described in the docs, which are not available right now due to Github issues but should be online again soon. 所有这些都在文档中进行了描述,由于Github问题,这些文档目前不可用,但应该很快会再次在线。

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

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