五月 18th, 2009php之openid
此文章来源于后羿之弓,转载请注明出处
JanRain的OpenID Enabled(http://openidenabled.com/)是一个不错的openid库。
open id中的相关字段如下
1.昵称:openid.sreg.nickname:
Any UTF-8 string that the End User wants to use as a nickname.
2.电子邮件地址openid.sreg.email:
The email address of the End User as specified in section 3.4.1 of [RFC2822] (Resnick, P., “Internet Message Format,” .).
3.全名openid.sreg.fullname:
UTF-8 string free text representation of the End User’s full name.
4.生日:openid.sreg.dob:
The End User’s date of birth as YYYY-MM-DD. Any values whose representation uses fewer than the specified number of digits should be zero-padded. The length of this value MUST always be 10. If the End User user does not want to reveal any particular component of this value, it MUST be set to zero.
For instance, if a End User wants to specify that his date of birth is in 1980, but not the month or day, the value returned SHALL be “1980-00-00″.
5.性别:openid.sreg.gender:
The End User’s gender, “M” for male, “F” for female.
6.邮编openid.sreg.postcode:
UTF-8 string free text that SHOULD conform to the End User’s country’s postal system.
7.国家openid.sreg.country:
The End User’s country of residence as specified by ISO3166.
8.语言openid.sreg.language:
End User’s preferred language as specified by ISO639.
9.时区:openid.sreg.timezone:
ASCII string from TimeZone database
For example, “Europe/Paris” or “America/Los_Angeles”.
规范
http://openid.net/specs/openid-simple-registration-extension-1_0.html