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 what SO does i presume).

How do you (or would you) implement access recovery with OpenID? Any thoughts?

I'm using RoR + Authlogic-openid, if that matters.


回答1:


I wouldn't. I'd rely on the user's ID provider to handle this. If the user's provider doesn't, well, the user should pick a new provider next time :) This may sound user-unfriendly, but it just pushes the requirement to the provider, which is part of the OpenID philosophy. Losing access is not the worst thing the provider can do to the user, so I feel comfortable relying on the provider to deal with the situation properly.

One way to be helpful is to allow the user to associate a second identity with their account - a user who loses access to one can use the other. This has to be done, by the user, before access was lost, however.

This is what StackOverflow does - you can add additional identities while authenticated, and if you log out and try to log back in, you aren't offered a non-OpenID login option.



来源:https://stackoverflow.com/questions/2160888/access-recovery-mechanism-if-site-only-supports-openid-login

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!