authlogic-oid

using authlogic to auto create users bypassing explicit user registeration

折月煮酒 提交于 2020-01-01 17:06:12
问题 I'm wondering how to go about using Authlogic to auto register a user who chooses to use open id. Right now they have to register first before being able to login in, even if they choose open id, but I'd prefer if they could just login directly provided I get all the necessary details from the open id provider. But I'm not sure how to go about doing this? Would I do it inside my user session controller or is there some fancy way to extend authlogic inside the model? If someone could point me

Access recovery mechanism if site only supports OpenID login

假装没事ソ 提交于 2019-12-24 03:06:34
问题 Say I have a site, like StackOverflow, which supports OpenID login only. Suppose someone had an account on the site, bound to his OpenID, and then he lost access to his OpenID provider (that's surely possible and not harder than losing your email password). How would he then restore access to his account? I see two options: one is the usual mail-me-a-key sequence, only appropriate if he had provided an email address. Two is he could have provided a backup OpenID for such emergencies (that's

using authlogic to auto create users bypassing explicit user registeration

自古美人都是妖i 提交于 2019-12-04 17:20:34
I'm wondering how to go about using Authlogic to auto register a user who chooses to use open id. Right now they have to register first before being able to login in, even if they choose open id, but I'd prefer if they could just login directly provided I get all the necessary details from the open id provider. But I'm not sure how to go about doing this? Would I do it inside my user session controller or is there some fancy way to extend authlogic inside the model? If someone could point me in the right the direction, i'd be grateful. Here's an example of what I have now with the two pages: