-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor to Mixin #2
Comments
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 |
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. |
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? |
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
```
The text was updated successfully, but these errors were encountered: