#45 ✓resolved
Mans Angantyr

use openid to create users?

Reported by Mans Angantyr | February 16th, 2009 @ 12:15 AM

I would like be able to request additional registration fields during the open_id authentication when I create a User.

I was hoping to find an equally elegant way of doing it inside the User model, much like you do in UserSession model.

Any plans for implementing something similar in the acts_authentic module? I could see something like:

class User acts_as_authentic :open_id_options => {:required => [ :nickname, :email ], :optional => :fullname}

and pass the hash along with the authenticate_with_open_id call

oh, and thanks for a great gem!

Comments and changes to this ticket

  • Ben Johnson

    Ben Johnson February 17th, 2009 @ 02:44 AM

    • State changed from “new” to “open”

    Hi Mans,

    I agree, the open id tutorial needs to integrate more with user creation / updating. I plan to update my openid tutorial soon. I want to figure out an elegant way to do this, so the code is DRY.

    What I want to do is create an authlogic-openid gem that adds all of the proper OpenID code. I plan to work on that shortly, maybe you could take a stab at it? I think that's the best route. The option is to clump all of this into authlogic, which I'm not too fond of. I'd like to keep authlogic focused on the core authentication methods and core features. So it is ready to go right out of the box and then have other gems that add unique / special functionality.

  • Ben Johnson

    Ben Johnson March 23rd, 2009 @ 03:21 AM

    • State changed from “open” to “resolved”

    Check this out: http://github.com/binarylogic/au...

    I just released it. I still need to write some tests and document, but it seems to work well for me. Try it out and let me know what you think.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Object based authentication solution that handles all of the non sense for you. It's as easy as ActiveRecord is with a database.

People watching this ticket

Referenced by

Pages