English 中文(简体)
Implementing OpenID. Is there anything unique to identify the user?
原标题:
  • 时间:2009-11-17 21:40:18
  •  标签:
  • openid

I would like to implement user authentication using OpenID.

Is there anything unique in user data that OpenID provides that I could use as a key to remember and identify the users? I was thinking of using the email but the user could change it.

最佳回答

The user s OpenID identity is what you should use for this purpose.

This is either the URL entered as an identity, or returned as claimed_id when available. In either case, actually store the identity only after a successful authentication.

Refer to section 7.2 and 7.3 of the OpenID 2.0 Specification for more information.

However, as pointed out by Stephen in the comments, you will need to generate an unique ID yourself if you want to associate multiple identities with a single user.

问题回答

暂无回答




相关问题
Authlogic-oid with ONLY OpenID

I am implementing an internal site, for which I want our company s OpenID server to be the only means of registering and logging in. To be more specific, I don t even want a normal email and password/...

Best Coldfusion Library for OpenID [closed]

I am getting ready to start a project that requires using OpenID within Coldfusion 8. I have found a number of different options and was wondering what has worked the best, get s the most support, ...

authlogic auto_register feature using my options

I have auto registration working with authlogic using gaizka s version of authlogic_openid which I found on Github since pelle s original addition of the feature seemed to cause issues. http://...

Requesting email address from OpenID provider in PHP

What s the simplest way to request an email address from an OpenID provider? Is there a good PHP library that simplifies this problem? I know that providers implement things differently. I ve heard ...

Got a strange OpenID. How can I change it?

(I am sorry, I wanted to ask this question on "meta" first, but it says there that I "can t post my question there because I don t have an OpenID") Hello, I am just a new user here and don t ...

热门标签