mbleigh / twitter-auth

Standard authentication stack for Rails using Twitter to log in.
355 stars 48 forks source link

Refactor to Mixin #2

Open mbleigh opened 15 years ago

mbleigh commented 15 years ago

Make the TwitterAuth functionality a mixin instead of a superclass, so that TwitterAuth can be more configurable and added in a less strict manner.

Example:

class User < ActiveRecord::Base
  twitter_authenticated :via => :oauth
end
bjeanes commented 15 years ago

This is perfect for those of us wanting to add twitter login as an optional way to authenticate, in addition to traditional login with username and password

mbleigh commented 15 years ago

Ok, this is something I'd like to tackle in the near future. This is my proposed laundry list, tell me if I'm missing anything:

Obviously this isn't a small task and I'll be starting work on it in a mixin branch sometime soon.

micahalcorn commented 14 years ago

Any progress on this? I am also having trouble getting my application to logout. I understand that I can use the /logout path from the sessions controller, but it does not actually sign out of twitter after destroying the session. As a result, I just end up looping back through the automatic login. Any suggestions?