Browse files

changed callback url to be an environment setting

  • Loading branch information...
1 parent 5441bcf commit ec955200bf8efde130fc35cc84a2da762bf6c7ed @tardate committed Aug 13, 2009
Showing with 7 additions and 3 deletions.
  1. +5 −2 README.rdoc
  2. +2 −1 config/environment.rb
@@ -131,11 +131,14 @@ and are required to complete the configuration.
Add the twitter application key and consumer secret as operating system environment variables
(TWOAUTH_KEY and TWOAUTH_SECRET respectively).
+Set your callback URL as operating system environment variable (TWOAUTH_CALLBACK).
Alternatively, you can edit config/environment.rb to set these directly.
If you are using heroku, add the environment keys using the heroky utility (gem):
- heroku config:add TWOAUTH_KEY=8N029N81 TWOAUTH_SECRET=9s83109d3+583493190
+ heroku config:add TWOAUTH_KEY=8N029N81 TWOAUTH_SECRET=9s83109d3+583493190 TWOAUTH_CALLBACK=
== 11. Testing the application locally
@@ -144,7 +147,7 @@ e.g.
This is the address that twitter sends users back to after the twitter authentication step.
-To test on a local development machine (not known on the web/in DNS) as the domain name in the callback,
+To test on a local development machine (not known on the web/in DNS as the domain name in the callback),
you can simply add the registered domain to your hosts file (aliasing localhost) e.g.
@@ -76,7 +76,8 @@
# Twitter OAuth settings
+ # Twitter OAuth callback default
# Twitter OAuth Consumer key
# Twitter OAuth Consumer secret

0 comments on commit ec95520

Please sign in to comment.