authlogic_openid icon indicating copy to clipboard operation
authlogic_openid copied to clipboard

[feature] merge registration and login

Open rubenfonseca opened this issue 15 years ago • 4 comments

Hi. It would be very nice if it was possible to merge the login and registration together. Example:

As a user who never used the website. When I login with openid. The user is automatically created.

This way, I don't have a registration phase. The user simple logins, and if it doesn't exist yet on the database, the user is created.

I tried to play with the existing code to implement this behavior with no success. Does it make sense?

rubenfonseca avatar Jun 16 '09 21:06 rubenfonseca

I tried to override "self.find_by_openid_identifier" on the User class as shown in http://gist.github.com/130921 . Although it seems to work, I loose the openid registration fields since map_openid_registration is never called. I think I'm getting closer...

rubenfonseca avatar Jun 16 '09 21:06 rubenfonseca

This appears to have been solved by gaizka. http://github.com/gaizka/authlogic_openid

jms301 avatar Jan 06 '10 13:01 jms301

Although worth noting that Gaizka has a bug when you have a valid OID provider but invalid directory on their server. Fix for that: http://gist.github.com/272655

jms301 avatar Jan 14 '10 14:01 jms301

Is there a way to do this without modifying authlogic-oid?

glebm avatar Mar 05 '10 05:03 glebm