ruby-openid icon indicating copy to clipboard operation
ruby-openid copied to clipboard

How bad is "Error attempting to use stored discovery information"?

Open wader opened this issue 11 years ago • 0 comments

Hi

I noticed that ruby-openid is logging this when a user logs in:

Error attempting to use stored discovery information: OpenID::TypeURIMismatch
Attempting discovery to verify endpoint
Performing discovery on https://www.google.com/accounts/o8/id?id=<removed>

This seems to happens because the type_uris don't match up in verify_discovery_single:

>> endpoint.type_uris
=> ["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"]
>> to_match.type_uris
=> ["http://specs.openid.net/auth/2.0/signon"]
>>

"http://specs.openid.net/auth/2.0/signon" is not found in endpoint.type_uris.

I found a similar issue for openid/python-openid#23.

Im I doing something wrong?

wader avatar Feb 07 '14 10:02 wader