我试图让 google connect/openid 在 silverstripe 中工作,但我收到了这个错误,我根本不明白它的错误。
[Notice] Trying to get property of non-object
GET /GoogleCallback/GoogleConnect
$ch = curl_init($url);
curl_setopt_array($ch, array(
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => array( 'Accept: application/xrds+xml')
));
$xml = curl_exec($ch);
$xml = simplexml_load_string($xml);
$discovery = $xml->XRD->Service->URI->__toString();
curl_close($ch);
$params = array(
'openid.mode' => 'checkid_setup',
'openid.ns' => 'http://specs.openid.net/auth/2.0',
PS:我正在使用这个模块https://github.com/MediaDevils/silverstripe-google-authentication