Using authlogic to automatically create users bypassing explicit user registration

I am wondering how to use Authlogic to automatically register a user who prefers to use an open identifier. Right now they have to register first before logging in, even if they choose an open identifier, but I would prefer that they can just connect directly, I get all the necessary data from an open identifier provider. But I'm not sure how to do this?

Would I do this inside my user session controller or is there some fancy way to extend authlogic inside the model?

If someone can point me in the right direction, I would be grateful.

Here is an example of what I have with two pages now:

http://morning-warrior-55.heroku.com/

Thanks,

+2
source share
2 answers
+2
source

You must use the auto_register method in your UserSession model. Although I tried to solve the same issue. I managed to log in / register the first time.

The second time a user tries to log in, the system tries to register him again.

+1
source

All Articles