我使用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