Skip to content

Commit

Permalink
Update S2InitTwitter.groovy
Browse files Browse the repository at this point in the history
s2-init-twitter results configs on Config.groovy:
- grails.plugins.springsecurity.twitter.app.consumerKey
- grails.plugins.springsecurity.twitter.app.consumerSecret
and causes "401 Unauthorized" by "Connect with Twitter" button.
the document says:
- grails.plugins.springsecurity.twitter.consumerKey
- grails.plugins.springsecurity.twitter.consumerSecret
  • Loading branch information
sudoyu committed May 20, 2013
1 parent 7cd0cdd commit 85d1a0b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/S2InitTwitter.groovy
Expand Up @@ -59,15 +59,15 @@ private void fillConfig() {

code = "twitter.app.key"
ant.input(message: "Enter your Twitter API Key", addproperty: code)
config['app.key'] = ant.antProject.properties[code]
config['key'] = ant.antProject.properties[code]

code = "twitter.app.consumerKey"
ant.input(message: "Enter your Twitter API Consumer Key", addproperty: code, defaultvalue: config['app.key'])
config['app.consumerKey'] = ant.antProject.properties[code]
config['consumerKey'] = ant.antProject.properties[code]

code = "twitter.app.consumerSecret"
ant.input(message: "Enter your Twitter API Consumer Secret", addproperty: code)
config['app.consumerSecret'] = ant.antProject.properties[code]
config['consumerSecret'] = ant.antProject.properties[code]

def configFile = new File(appDir, 'conf/Config.groovy')
if (configFile.exists()) {
Expand Down

0 comments on commit 85d1a0b

Please sign in to comment.