1

I am using JanRain OpenID Library PHP. I am trying out the consumer example in /example/consumer. Services like Google (or Yahoo) are not working, while other's like myopenid.com, blogger are working.

My PHPinfo says that cURL and OpenSSL is enabled. Note that I also tried using LightOpenID Library (gitorious.org/lightopenid) which works with Google. Unfortunately, it doesn't work on server with php safe_mode On, it requires cURL. So I cannot use on all servers.

JanRain's Library works on the server but not with Google.

siddhant3s
  • 410
  • 3
  • 10
  • possible duplicate of [Janrain's PHP-OpenID and Google/Yahoo](http://stackoverflow.com/questions/992682/janrains-php-openid-and-google-yahoo) – Dan McGrath Jun 12 '10 at 00:52
  • See my post here. I have given the code and explanation !
    [http://stackoverflow.com/questions/3179193/php-lightopenid-how-to-fetch-account-data-from-provider/5270929#5270929](http://stackoverflow.com/questions/3179193/php-lightopenid-how-to-fetch-account-data-from-provider/5270929#5270929)
    – Floccinaucinihilipilification. Mar 11 '11 at 09:26

1 Answers1

1

You say that you have cURL, so dependency on it shouldn't be a problem.

LightOpenID will work in safe_mode if you comment this line(at least it works for me). It won't follow Location http header then, but I don't know any server which uses it.

Anyway, safe_mode is deprecated, so you should avoid servers where it's enabled.

Mewp
  • 4,715
  • 1
  • 21
  • 24