Accepting the Google OpenID with PHP OpenID

Published on December 31, 2009 and tagged with openid  php

If you are using the PHP OpenID library (which is also used by my OpenID component for CakePHP), it is possible that you get an “Invalid OpenID” error when you try to login with the Google OpenID (https://www.google.com/accounts/o8/id), or any other OpenID that uses “https”.

In this case, the following steps might help to fix this issue:

  • Ensure you have Curl and OpenSSL installed
  • Enable the Curl and OpenSSL extensions in your php.ini (on Archlinux this file is found in /etc/php/):
    extension=curl.so
    extension=openssl.so
    
  • Restart your web server

Now the error message should disappear and you should be able to log in with the Google OpenID.

—-

That’s it for 2009. It was a rather lazy year on this blog from my side (I didn’t even manage to do a redesign…), and so I hope I will be a bit less lazy with writing on this blog in 2010.

Anyway, thank you for reading this blog, and for all your comments and emails. A Happy New Year everyone & cu in 2010 :)

4 comments baked

Bake a comment




(for code please use <code>...</code> [no escaping necessary])

© daniel hofstetter. Licensed under a Creative Commons License