brucedyoung
Oct 6th, 2010, 04:25 PM
Once I figured out the required database structure, I was able to create a new project, install the Spring Security Core plugin, and everything works great.
Used the default "grails s2-quickstart cedu.core User Role":
grails.plugins.springsecurity.userLookup.userDomai nClassName = 'edu.core.User'
grails.plugins.springsecurity.userLookup.authority JoinClassName = 'edu.core.UserRole'
grails.plugins.springsecurity.authority.className = 'edu.core.Role'
Persists to MySQL, no problem.
But somehow, I cannot get "Jasig CAS support for the Spring Security plugin" to work. I use the basic parameters in config.groovy:
grails.plugins.springsecurity.cas.loginUri = '/login'
grails.plugins.springsecurity.cas.serviceUrl = 'http://my.app.server:8080/Core/j_spring_cas_security_check'
grails.plugins.springsecurity.cas.serverUrlPrefix = my.cas.server/cas'
grails.plugins.springsecurity.cas.proxyCallbackUrl = 'http://my.app.server:8080/Core/secure/receptor'
grails.plugins.springsecurity.cas.proxyReceptorUrl = '/secure/receptor'
But it never intercepts.
On the other hand, I can install the "JA-SIG CAS Client Plugin for Grails", use the default parameters and it works. It sets the session variables, but not the Spring Security.
I've read here about people having problems with installing the Security Core, but having success with the CAS add-on.
Is there something I'm missing, or something else I need to write for the Spring Security to use the CAS credentials?
Ideally the authenticated CAS_FILTER_USER would map to Person.username, and everything would be set.
thanks
Bruce Young
Used the default "grails s2-quickstart cedu.core User Role":
grails.plugins.springsecurity.userLookup.userDomai nClassName = 'edu.core.User'
grails.plugins.springsecurity.userLookup.authority JoinClassName = 'edu.core.UserRole'
grails.plugins.springsecurity.authority.className = 'edu.core.Role'
Persists to MySQL, no problem.
But somehow, I cannot get "Jasig CAS support for the Spring Security plugin" to work. I use the basic parameters in config.groovy:
grails.plugins.springsecurity.cas.loginUri = '/login'
grails.plugins.springsecurity.cas.serviceUrl = 'http://my.app.server:8080/Core/j_spring_cas_security_check'
grails.plugins.springsecurity.cas.serverUrlPrefix = my.cas.server/cas'
grails.plugins.springsecurity.cas.proxyCallbackUrl = 'http://my.app.server:8080/Core/secure/receptor'
grails.plugins.springsecurity.cas.proxyReceptorUrl = '/secure/receptor'
But it never intercepts.
On the other hand, I can install the "JA-SIG CAS Client Plugin for Grails", use the default parameters and it works. It sets the session variables, but not the Spring Security.
I've read here about people having problems with installing the Security Core, but having success with the CAS add-on.
Is there something I'm missing, or something else I need to write for the Spring Security to use the CAS credentials?
Ideally the authenticated CAS_FILTER_USER would map to Person.username, and everything would be set.
thanks
Bruce Young