我想更改 Acegi - 插件使用的身份验证过程。它应该是一个完全定制的过程。自定义登录表单 + 自定义身份验证方法。
显然,关于这个主题的文档很少。
在 The Definitive Guide to Grails 一书中,它是针对旧版本的 grails 进行描述的。有spring/resources.xml
用来。
在新版本中是 spring/resources.groovy
文件,其中使用了 DSL。不知道怎么配置新的AuthenticationManager
.
我怎样才能做到这一点?
最佳答案
关于表单,您应该在/grails-wapp/views/login 下有一个 auth.gsp。关于身份验证,您可能只需要在/grails-app/controllers/下的 LoginController 中注入(inject)不同的 AuthenticateService。
关于Grails - Acegi : Customize Authentication Method,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/144605/