LightOpenID - Provider为发现信息不匹配的标识符发出断言

时间:2011-07-12 00:42:31

标签: php openid lightopenid

这是我使用LightOpenID提供程序脚本登录Stack后得到的错误。

OpenID提供商为其发现信息不匹配的标识符发出了断言。

Assertion endpoint info: 
ClaimedIdentifier: http ://sub.mydomain.net/?cgillis 
ProviderLocalIdentifier: http ://sub.mydomain.net/?cgillis 
ProviderEndpoint: http ://sub.mydomain.net/ 
OpenID version: 2.0 Service Type URIs: 

Discovered endpoint info: [{ 
ClaimedIdentifier: http ://specs.openid.net/auth/2.0/identifier_select        
ProviderLocalIdentifier: http ://specs.openid.net/auth/2.0/identifier_select    
ProviderEndpoint: http ://sub.mydomain.net/ 
OpenID version: 2.0 Service Type URIs: http ://specs.openid.net/auth/2.0/server },] 

提供者脚本:https://gist.github.com/1072612

我应该注意提供者将select_id设置为true。如果设置为false,则一切正常。

1 个答案:

答案 0 :(得分:1)

基本上,问题是您为身份网址设置了select_id = true。如果仅为checkid()返回的url将其设置为false,则它将按预期工作。

请参阅存储库中example.php中的__construct(),以获取有关如何解决此问题的示例。

您还应该看到Provider wiki page和相关的bug report