I use OpenID authentication in conjunction with traditional case / signature authentication on my site. When someone first signs up using OpenID, I would like to be able to retrieve the username for use on the site.
This is easy for some openid identifiers - for example:
http:
http:
http:
However, this is not always the case, since any URL can essentially be used as an OpenID.
One option is to maintain a list of URL formats as described above, where I know that I can extract the username and automatically assign the username in other cases (which can be changed after logging in). Is there another, more flexible way to retrieve a username?
source
share