(Quick Reference)

3 Migrating from the Acegi Plugin - Reference Documentation

Authors: Burt Beckwith, Beverley Talbott

Version: 1.2.7.3

3 Migrating from the Acegi Plugin

If you formerly used the Acegi plugin, change your application configuration settings as follows.

SettingSpring Security PluginAcegi Plugin
Enabled by defaulttruefalse
Cache UserDetails by defaultfalsetrue
Configuration locationgrails-app/conf/ Config.groovygrails-app/conf/ SecurityConfig.groovy
Security servicespringSecurityServiceauthenticateService

The table shows names of corresponding configuration properties.

The plugin's configuration values all start with grails.plugins.springsecurity to distinguish them from similarly named options in Grails and from other plugins. You must specify all property overrides with the grails.plugins.springsecurity suffix. For example, you specify the attribute password.algorithm as:

grails.plugins.springsecurity.password.algorithm='SHA-512'

in Config.groovy

Acegi PluginSpring Security Plugin
activeactive
loginUserDomainClassuserLookup.userDomainClassName
userNameuserLookup.usernamePropertyName
enableduserLookup.enabledPropertyName
passworduserLookup.passwordPropertyName
relationalAuthoritiesuserLookup.authoritiesPropertyName
getAuthoritiesMethodN/A
authorityDomainClassauthority.className
authorityFieldauthority.nameField
authenticationFailureUrlfailureHandler.defaultFailureUrl
ajaxAuthenticationFailureUrlfailureHandler.ajaxAuthFailUrl
defaultTargetUrlsuccessHandler.defaultTargetUrl
alwaysUseDefaultTargetUrlsuccessHandler.alwaysUseDefault
filterProcessesUrlapf.filterProcessesUrl
keyanon.key
userAttributeanon.userAttribute
loginFormUrlauth.loginFormUrl
forceHttpsauth.forceHttps
ajaxLoginFormUrlauth.ajaxLoginFormUrl
afterLogoutUrllogout.afterLogoutUrl
errorPageadh.errorPage
ajaxErrorPageadh.ajaxErrorPage
ajaxHeaderajaxHeader
algorithmpassword.algorithm
encodeHashAsBase64password.encodeHashAsBase64
cookieNamerememberMe.cookieName
alwaysRememberrememberMe.alwaysRemember
tokenValiditySecondsrememberMe.tokenValiditySeconds
parameterrememberMe.parameter
rememberMeKeyrememberMe.key
useLoggerregisterLoggerListener
useRequestMapDomainClasssecurityConfigType = "Requestmap"
requestMapClassrequestMap.className
requestMapPathFieldrequestMap.urlField
requestMapConfigAttributeFieldrequestMap.configAttributeField
useControllerAnnotationssecurityConfigType = "Annotation"
controllerAnnotationsMatchercontrollerAnnotations.matcher
controllerAnnotationsMatchesLowercasecontrollerAnnotations.lowercase
controllerAnnotationStaticRulescontrollerAnnotations.staticRules
controllerAnnotationsRejectIfNoRulerejectIfNoRule
requestMapStringN/A - securityConfigType = "InterceptUrlMap" is very similar
realmNamebasic.realmName
basicProcessingFilteruseBasicAuth
switchUserProcessingFilteruseSwitchUserFilter
swswitchUserUrlswitchUser.switchUserUrl
swexitUserUrlswitchUser.exitUserUrl
swtargetUrlswitchUser.targetUrl
useMailN/A - registration is supported in the UI plugin
mailHostN/A - registration is supported in the UI plugin
mailUsernameN/A - registration is supported in the UI plugin
mailPasswordN/A - registration is supported in the UI plugin
mailProtocolN/A - registration is supported in the UI plugin
mailFromN/A - registration is supported in the UI plugin
mailPortN/A - registration is supported in the UI plugin
defaultRoleN/A - registration is supported in the UI plugin
useOpenIdN/A - supported in the OpenID plugin
openIdNonceMaxSecondsN/A - supported in the OpenID plugin
useLdapN/A - supported in the LDAP plugin
ldapRetrieveGroupRolesN/A - supported in the LDAP plugin
ldapRetrieveDatabaseRolesN/A - supported in the LDAP plugin
ldapSearchSubtreeN/A - supported in the LDAP plugin
ldapGroupRoleAttributeN/A - supported in the LDAP plugin
ldapPasswordAttributeNameN/A - supported in the LDAP plugin
ldapServerN/A - supported in the LDAP plugin
ldapManagerDnN/A - supported in the LDAP plugin
ldapManagerPasswordN/A - supported in the LDAP plugin
ldapSearchBaseN/A - supported in the LDAP plugin
ldapSearchFilterN/A - supported in the LDAP plugin
ldapGroupSearchBaseN/A - supported in the LDAP plugin
ldapGroupSearchFilterN/A - supported in the LDAP plugin
ldapUsePasswordN/A - supported in the LDAP plugin
useKerberosN/A - will be supported in a secondary plugin
kerberosLoginConfigFileN/A - will be supported in a secondary plugin
kerberosRealmN/A - will be supported in a secondary plugin
kerberosKdcN/A - will be supported in a secondary plugin
kerberosRetrieveDatabaseRolesN/A - will be supported in a secondary plugin
useHttpSessionEventPublisheruseHttpSessionEventPublisher
cacheUserscacheUsers
useCASN/A - supported in the CAS plugin
cas.casServerN/A - supported in the CAS plugin
cas.casServerPortN/A - supported in the CAS plugin
cas.casServerSecureN/A - supported in the CAS plugin
cas.localhostSecureN/A - supported in the CAS plugin
cas.failureURLN/A - supported in the CAS plugin
cas.defaultTargetURLN/A - supported in the CAS plugin
cas.fullLoginURLN/A - supported in the CAS plugin
cas.fullServiceURLN/A - supported in the CAS plugin
cas.authenticationProviderKeyN/A - supported in the CAS plugin
cas.userDetailsServiceN/A - supported in the CAS plugin
cas.sendRenewN/A - supported in the CAS plugin
cas.proxyReceptorUrlN/A - supported in the CAS plugin
cas.filterProcessesUrlN/A - supported in the CAS plugin
useNtlmN/A - will be supported in a secondary plugin
ntlm.stripDomainN/A - will be supported in a secondary plugin
ntlm.retryOnAuthFailureN/A - will be supported in a secondary plugin
ntlm.forceIdentificationN/A - will be supported in a secondary plugin
ntlm.defaultDomainN/A - will be supported in a secondary plugin
ntlm.netbiosWINSN/A - will be supported in a secondary plugin
httpPortportMapper.httpPort
httpsPortportMapper.httpsPort
secureChannelDefinitionSourceN/A, use secureChannel.definition
channelConfigsecureChannel.definition
ipRestrictionsipRestrictions
useFacebookN/A - will be supported in the Facebook plugin
facebook.filterProcessesUrlN/A - will be supported in the Facebook plugin
facebook.authenticationUrlRootN/A - will be supported in the Facebook plugin
facebook.apiKeyN/A - will be supported in the Facebook plugin
facebook.secretKeyN/A - will be supported in the Facebook plugin