|
|
Spring security OpenId plugin
I want to change the way OpenId authentication is done in the Spring Security Core OpenId plugin. Basically I want to do some customization in OpenIdUserDetailsService. What is the best way to do this? I have tried to implement a CustomUserDetailsService by extending the GormUserDetailsService and adding it in resources.groovy. But for some reason the plugin is not picking up my CustomUserDetailsService, instead used the OpenIdUserDetailsService. If I do my changes directly in OpenIdUserDetailsService, then naturally its working. But I am not sure if this is the ideal solution for this. Any help appreciated.
If you declare the bean in resources.groovy with the same name it will replace a bean created by Grails or a plugin. Is there a typo in the bean name, or a case sensitivity issue? It should be something like
Code:
beans = { userDetailsService(com.myapp.MyOpenIdUserDetailsService) { // properties }
}Thanks. Got the problem, I didn't included the necessary properties in the bean definition in resources.groovy. |
|