tags:

views:

1453

answers:

6

Hey,

I'm using PHP-OpenId 2.1.3 which I've unzipped on my server here (this is the consumer example that comes with PHP-OpenId). When I enter the Google OpenId url (https://www.google.com/accounts/o8/id) and submit I get a blank screen.

When I try the exact same example code on the PHP-OpenId website here with the same URL it works fine.

I don't understand what I'm doing wrong. The only thing I can think of is that somehow Google does not want to work with my server.

Any ideas how to make this work?

Thanks

A: 

I'm having the same problem, it works with xxxxx.blogspot.com but didn't with google (despite blogspot uses gmail accounts for login...)

+1  A: 

If it breaks for Google and Yahoo but works for certain other providers, it's likely the setup for making HTTPS requests is borked on your PHP server. Check to make sure you have the ca-certificates package installed.

keturn
I've got ca-certificates installed on server, but I still experience problems with curl and Google/Yahoo. Do you need to enable them somehow in my PHP, install some extension maybe?
jayarjo
A: 

ketrun is right, I had a similar problem. After I installed the ca-certificates package, everything was fine, but when there is a problem with https requests, PHP Openid returns an error (invalid openid), not a blank screen.

Be sure to check the detect.php file from the examples dir and discover.php to check your OpenID URLs.

mns
A: 

Hi I wrote my solution at http://www.openrest.eu/docs/openid-not-completely-enabled-for-google.php. I hope this will help you. Bye, Fair

Richard wrote a follow-up question about this: http://stackoverflow.com/questions/3047688/php-openid-doesnt-work-with-google-yahoo-and-hacks-fix-it-are-they-safe
keturn
Thank you for posting that link which has solved my problem. Whew.
joedevon
A: 

is your problem still alive? i test the url you gave (on your server),it works fine for me.

hd
A: 

Hi Steven!

I'm using the same PHP OpenId library at localhost in my PC and don't work with the Google Openid. Maybe because I don't have de SSL, but I'm not sure, you have any idea?

Thanks!

PS: I'm sorry if my english is not fine.

Update: Other question, the package ca-certificates, what kind of package is? it's for the server or for the php?

Jaguarius
Looks like ca-certificates is the package for server.
jayarjo