When logging via OpenID to StackExchange sites, my OpenID provider says that it's not possible to verify Stack Exchange's consumer authenticity, meaning it can't verify
return_to URL in OpenID request with the
return_to URL in the XRDS document of the consumer.
As far as my understanding of OpenID 2.0 and Yadis protocols goes, the first step in this process is to get the XRDS document from
openid.realm URL. Stack Exchange site produces this OpenID request:
So, Yadis request from my OpenID provider to
openid.realm (https://meta.stackexchange.com/users/authenticate/) can look like (I'm adding
--save-headers to see HTTP header and also
| less for easier search):
wget --header='Accept:text/html; q=0.3, application/xhtml+xml; q=0.5, application/xrds+xml' --save-headers https://meta.stackexchange.com/users/authenticate/ -O- 2>&1 | less
Response to this request should contain one of these three:
- XRDS document in the body (which doesn't, response is HTML page)
- HTTP header
x-xrds-locationcontaining URL of the actual XRDS document location (there is no such header)
- HTML page with HTML header containing
x-xrds-location(sadly also this meta tag is not on the page)
So the first step of verifying consumer (getting XRDS document) fails and therefore Stack Exchange Meta (or any other site I'm trying to log into) is marked as not authentic (even though it let me log in).
So am I missing some OpenID/Yadis knowledge, or is this bug of StackExchange?