我使用Spring Security 3.0.5为我的网站提供openid支持。我在写下面的代码弹簧security.xml文件OpenId属性交换不适用于雅虎?
<security:attribute-exchange>
<security:openid-attribute name="axContactEmail" type="http://axschema.org/contact/email" required="true"/>
<security:openid-attribute name="oiContactEmail" type="http://schema.openid.net/contact/email" required="true"/>
<security:openid-attribute name="axNamePersonFullname" type="http://axschema.org/namePerson" required="true"/>
<security:openid-attribute name="axNamePersonFriendlyName" type="http://axschema.org/namePerson/friendly" required="true"/>
<security:openid-attribute name="axNamePersonFirstName" type="http://axschema.org/namePerson/first" required="true"/>
<security:openid-attribute name="axNamePersonLastName" type="http://axschema.org/namePerson/last" required="true"/>
</security:attribute-exchange>
比我使用OpenIDAuthenticationToken
......为了调试目的,我已经印在控制台的存取权限值的属性...我打印参数...我得到下面的输出,同时试图为Yahoo login
...
Email Address : null
Full name : null null
Prefered login : null.null
Identifier here : https://me.yahoo.com/a/L73gX9Yjkt2SKmqcgkzrbF7gGjRP **(correct!!! I have checked it)**
相同的代码工作正常使用Gmail和我得到的所有我问的属性...提前
感谢,
再次感谢@Peter .... – aProgrammer