Skip to content
Browse files

update readme.

  • Loading branch information...
1 parent bed55e2 commit 80897477a477a580b04b17cb5493435caa050d0c @fairchild fairchild committed Jun 20, 2012
Showing with 24 additions and 16 deletions.
  1. +3 −15 README.md
  2. +21 −1 example/example_omniauth_app.rb
View
18 README.md
@@ -1,22 +1,10 @@
+This gem provides a wrapper around the oauth server used in the att foundry alpha api program.
+
## To run this example locally
bundle install
ruby ./example_omniauth_app.rb
open http://localhost:4567
-## To deploy to heroku
+This gem can be integrated with a ruby app to preovide authentication and authorization and basic profile services.
- heroku create --stack cedar
- git push heorku master
- heroku config:add ATT_CLIENT_ID=asdfsdf ATT_CLIENT_SECRET=gggg ATT_REDIRECT_URI=https://yourapp.heroku.com/auth/att/callback
- heroku open
-
-# config
-
-base_domain = heroku info|grep Web|awk {'print $3'}
-
-heroku config:add GIHUB_OAUTH_CLIENT_ID=b6ce639ebd5618ca4d52
-heroku config:add GIHUB_OAUTH_CLIENT_SECRET=ef8b9abe468c2021d1e829f566091446375ea181
-
-heroku config:add FACEBOOK_OAUTH_CLIENT_ID=290594154312564
-heroku config:add FACEBOOK_OAUTH_CLIENT_SECRET=a26bcf9d7e254db82566f31c9d72c94e
View
22 example/example_omniauth_app.rb
@@ -152,4 +152,24 @@ def base_domain
<p><code>application -> 302 #{auth_url}/login</code></p>
<p><code>#{auth_url} 302 -> application/callback?request_token=code</code></p>
<p><code>application -> POST #{auth_url}/auth?code=code -> {"access_token":"token"}</code></p>
-<p><code>application -> POST #{auth_url}/auth?code=code -> {"access_token":"token"}</code></p>
+<p><code>application -> POST #{auth_url}/auth?code=code -> {"access_token":"token"}</code></p>
+
+@@readme
+## To deploy to heroku
+
+ heroku create --stack cedar
+ git push heorku master
+ heroku config:add ATT_CLIENT_ID=asdfsdf ATT_CLIENT_SECRET=gggg ATT_REDIRECT_URI=https://yourapp.heroku.com/auth/att/callback
+ heroku open
+
+# config
+
+If you would like to also have the github and facebook samples work, you will need to get app credentials and update the env.
+
+ base_domain = heroku info|grep Web|awk {'print $3'}
+
+ heroku config:add GIHUB_OAUTH_CLIENT_ID=xx
+ heroku config:add GIHUB_OAUTH_CLIENT_SECRET=cv
+
+ heroku config:add FACEBOOK_OAUTH_CLIENT_ID=fdfdf
+ heroku config:add FACEBOOK_OAUTH_CLIENT_SECRET=asdsad

0 comments on commit 8089747

Please sign in to comment.
Something went wrong with that request. Please try again.