tst2005googlecode / step2

Automatically exported from code.google.com/p/step2
1 stars 0 forks source link

No OpenID Endpoint found. #29

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. In the index.php of hybrid source code, I had pass value to 
$CONSUMER_KEY and $CONSUMER_SECRET.
2. Looking for OpenID Endpoint failed in the code segmen:
if ($identifier) {
      $fetcher = Auth_Yadis_Yadis::getHTTPFetcher();
      list($normalized_identifier, $endpoints) =
          Auth_OpenID_discover($identifier, $fetcher);

      if (!$endpoints) {
        debug('No OpenID endpoint found.');
      }
...
header('Location: ' . $endpoints[0]->server_url . '?' . rtrim($uri, '&'));
3. I tried changing the header statement to:
$uri = 'Location: https://www.google.com/accounts/o8/ud' . '?' . rtrim
($uri, '&');
header($uri);
and now I can see it's successful.
4. But now I want to connect to flexible endpoint. How can I do that?
Thanks for helping.

Hong An.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by TuanA...@gmail.com on 29 Mar 2010 at 1:16