Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updating README/TODO

  • Loading branch information...
commit 28cc46316cac489cec70b8ea0fe7468d9ff840f1 1 parent ac7d3de
@jasonm jasonm authored
View
3  README
@@ -1,2 +1 @@
-* You need to add the <%= twitter_connect_button %> to your sessions/new.html.erb
-* You need to add the <%= twitter_connect_button %> to your users/new.html.erb
+Use Twitter OAuth authentication on top of Clearance.
View
6 TODO
@@ -1,2 +1,4 @@
-Clean it up
-Don't send an email
+* Deny access scenario
+* Right now, send_confirmation_email sends even for twitter users; it's okay since they don't have an email, but we still shouldn't send one.
+* Make it easy to not use WebMock
+* Clean up TODOs
View
5 generators/clearance_twitter/clearance_twitter_generator.rb
@@ -10,15 +10,12 @@ def manifest
end
m.insert_into 'app/controllers/application_controller.rb',
'helper :clearance_twitter'
-# m.insert_into 'app/controllers/application_controller.rb',
-# 'include ClearanceTwitter::Authentication',
-# :after => 'include Clearance::Authentication'
m.insert_into 'config/routes.rb', 'ClearanceTwitter::Routes.draw(map)'
m.file 'sign_in_with_twitter.png', 'public/images/sign_in_with_twitter.png'
m.file 'twitter_auth.yml', 'config/twitter_auth.yml'
m.insert_into 'app/models/user.rb', "include ClearanceTwitter::LinkedUser",
:after => /include Clearance::User\s*$/
-# m.readme "README"
+ m.readme "README"
end
end
end
View
9 generators/clearance_twitter/templates/README
@@ -1,16 +1,13 @@
-
*******************************************************************************
-Next:
-
-1. Install and configure the facebooker plugin:
+1. Configure your Twitter application OAuth key and secret:
- script/plugin install git://github.com/mmangino/facebooker.git
+ config/twitter_auth.yml
2. Migrate:
rake db:migrate
-3. Add calls to fb_connect_and_sign_up_button in your sign in and sign up forms.
+3. Add calls to <%= twitter_connect_button %> in your sign in / sign up forms.
*******************************************************************************
Please sign in to comment.
Something went wrong with that request. Please try again.