What causes the Openid error: Received “invalidate_handle” from server

社会主义新天地 提交于 2019-12-10 18:43:13

问题


I'm new to openid, and I am getting an "invalidate_handle" and I have no idea what to do to fix it.
I'm using django_authopenid

[Thu Apr 29 14:13:28 2010] [error] Generated checkid_setup request to https://www.google.com/accounts/o8/ud with assocication AOxxxxxxxxOX5-V9oDc3-btHhFxzAcccccccccc2RTHgh    
[Thu Apr 29 14:13:29 2010] [error] Error attempting to use stored discovery information: <openid.consumer.consumer.TypeURIMismatch: Required type http://specs.openid.net/auth/2.0/signon not found in ['http://specs.openid.net/auth/2.0/server', 'http://openid.net/srv/ax/1.0', 'http://specs.openid.net/extensions/ui/1.0/mode/popup', 'http://specs.openid.net/extensions/ui/1.0/icon', 'http://specs.openid.net/extensions/pape/1.0'] for endpoint <openid.consumer.discover.OpenIDServiceEndpoint server_url='https://www.google.com/accounts/o8/ud' claimed_id=None local_id=None canonicalID=None used_yadis=True >>  
[Thu Apr 29 14:13:29 2010] [error] Attempting discovery to verify endpoint  
[Thu Apr 29 14:13:29 2010] [error] Performing discovery on https://www.google.com/accounts/o8/id?id=AOxxxxxxxxOX5-V9oDc3-btHhFxzAcccccccccc2RTHgh   
[Thu Apr 29 14:13:29 2010] [error] Received id_res response from https://www.google.com/accounts/o8/ud using association AOxxxxxxxxOX5-V9oDc3-btHhFxzAcccccccccc2RTHgh  
[Thu Apr 29 14:13:29 2010] [error] Using OpenID check_authentication  
[Thu Apr 29 14:13:29 2010] [error] op_endpoint  
[Thu Apr 29 14:13:29 2010] [error] claimed_id  
[Thu Apr 29 14:13:29 2010] [error] identity  
[Thu Apr 29 14:13:29 2010] [error] return_to  
[Thu Apr 29 14:13:29 2010] [error] response_nonce  
[Thu Apr 29 14:13:29 2010] [error] assoc_handle  
[Thu Apr 29 14:13:29 2010] [error] Received "invalidate_handle" from server https://www.google.com/accounts/o8/ud  

回答1:


openid.invalidate_handle is the Provider's way of saying that your RP is sending an association that does not exist or has expired. The RP is supposed to respond by deleting that association handle so it isn't reused in the future. If you're always getting invalidate_handles in the response, then the RP you're using has a bug in it.



来源:https://stackoverflow.com/questions/2739886/what-causes-the-openid-error-received-invalidate-handle-from-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!