(Quick Reference)

4 Configuration - Reference Documentation

Authors: Igor Artamonov

Version: 0.6

4 Configuration

Twitter configuration

NameDefault Value
grails.plugin.springsecurity.twitter.consumerKeymust be specified
grails.plugin.springsecurity.twitter.consumerSecretmust be specified

Domain configuration

NameDefault Value
grails.plugin.springsecurity.twitter.domain.classnameTwitterUser
grails.plugin.springsecurity.twitter.domain.connectionPropertyNameuser

Where:

  • .classname - domain class name that will be used for authentication
  • .connectionPropertyName - name of property that connects (`belongsTo`) to main app user (if you have two different domains, one for app user, one for twitter user)

Authentication configuration

NameDefault Value
grails.plugin.springsecurity.twitter.autoCreate.activetrue
grails.plugin.springsecurity.twitter.autoCreate.roles'ROLE_USER', 'ROLE_TWITTER'
grails.plugin.springsecurity.twitter.filter.processUrl'/j_spring_twitter_security_check'

Where:

  • .autoCreate.active - plugin will automatically create corresponding user for each new visitor authentication using Twitter
  • .autoCreate.roles - default list of roles that will be assigned to create user
  • .filter.processUrl - url that will be used for authentication