You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
looking at the typical harness for openid/yadis like the example here:
http://blog.paulisageek.com/2009/06/easy-openid-delegation-with-yadis.html
when using lightopenid you MUST add a secondary check to
if (strpos($_SERVER['HTTP_ACCEPT'], "application/xrds+xml") !== FALSE) {
when using the current implementation of
https://gitorious.org/lightopenid/lightopenid/blobs/master/openid.php
i.e.
if (strpos($_SERVER['HTTP_ACCEPT'], "application/xrds+xml") !== FALSE &&
!isset($_REQUEST['openid_mode']) {
the method "request_curl" adds 'Accept: application/xrds+xml, */*' regardless
of the request method while "request_streams" DOES NOT add the header when the
method is POST
"request_curl" should be corrected to
if($method != 'POST'){
curl_setopt($curl, CURLOPT_HTTPHEADER, array('Accept: application/xrds+xml, */*'));
}
Original issue reported on code.google.com by [email protected] on 16 Aug 2012 at 8:15
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
[email protected]
on 16 Aug 2012 at 8:15The text was updated successfully, but these errors were encountered: