phpopenidsingle-sign-onlightopenid

No OpenID Server found at https://www.google.com/accounts/o8/id


Interesting enough I am using the same .php scripts on two different servers (a.com, b.com) with different results, I guess those have different configurations. While on a.com I am able to go through SSO process nicely, the b.com throws "No OpenID Server found at https://www.google.com/accounts/o8/id".

my php script looks as following:

$openid = new LightOpenID($_SERVER["HTTP_HOST"]);
$openid->required = array
(
    'contact/email',
    'namePerson/first',
    'namePerson/last'
);
if(!$openid->mode)
{
    $openid->identity = 'https://www.google.com/accounts/o8/id';
    header('Location: ' . $openid->authUrl());
}

in b.com the line $openid->authUrl() throws an error saying: No OpenID Server found at https://www.google.com/accounts/o8/id

What server configuration may cause this isse?


Solution

  • Luckily, server admins were able to quickly discover the config difference in php configuration allow_url_fopen = 1 solved the issue