Skip to content

Instantly share code, notes, and snippets.

@rgstephens
Created December 18, 2014 04:57
Show Gist options
  • Save rgstephens/25ff095587b54b09f323 to your computer and use it in GitHub Desktop.
Save rgstephens/25ff095587b54b09f323 to your computer and use it in GitHub Desktop.
grails {
plugin {
springsecurity {
rest {
active = true
token {
storage {
useMemcached = false
useGorm = true
gorm {
tokenDomainClassName = 'com.tworks.teesheet.AuthenticationToken'
tokenValuePropertyName = tokenValue
usernamePropertyName = username
}
}
}
oauth {
frontendCallbackUrl = {String tokenValue -> "http://example.org#token=${tokenValue}" }
google {
client = Google2Client
key = '1093785205845-hl3jv0rd8jfohkn55jchgmnpvdpsnal4.apps.googleusercontent.com'
secret = 'sWXY3VMm4wKAGoRZg8r3ftZc'
scope = Google2Client.Google2Scope.EMAIL_AND_PROFILE
defaultRoles = ['ROLE_USER', 'ROLE_GOOGLE']
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment