Using twitter gem to signup and authenticate users

Posted by Jim Jones on Stack Overflow See other posts from Stack Overflow or by Jim Jones
Published on 2010-05-27T16:36:35Z Indexed on 2010/05/27 16:41 UTC
Read the original article Hit count: 282

Filed under:
|

Hi,

I'd like to allow users the option to register using their Twitter account. Basically, I'll present them with a standard signup form (name, login, email, pwd, pwd_confirm) as well as a "Signup with Twitter" link.

If a user chooses to signup with Twitter creds, then I'll create a user record in db. Then I'd like to be able to allow a user to authenticate using their Twitter creds on returning visits. Also, I'm using restful_authentication, so I need to have this work within that context.

What is the best way to do this? I haven't been to find any tutorials on allowing the signup and authentication pieces. Most examples just show how to authenticate a Twitter user into your app.

Thanks.

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about twitter