Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to implement Google OpenID authentication in PHP & Test on Localhost

I am new to OpenID, and want to implement Google OpenID authentication on my website. I could not found any examples.

Can anyone suggest me some good tutorials (step by step) or any working example with code to implement Google OpenID authentication using PHP.

like image 326
Navin Kaushal Avatar asked Jun 04 '10 06:06

Navin Kaushal


People also ask

Does Google OAuth use JWT?

Whether you use the JWT operations or the traditional operations that create opaque string tokens, the basic use of the OAuthV2 policy is the same. You can use JWT access tokens with all of the supported OAuthV2 grant types. See also Introduction to OAuth 2.0.


2 Answers

I'd suggest using LightOpenID. It's small, easy to use, and has working examples. You probably won't need a tutorial to use it.

Another answer suggests using php-openid, but in my opinion, it's too complicated and has too many dependencies (it is, however, more powerful).

like image 149
Mewp Avatar answered Oct 08 '22 18:10

Mewp


use this library http://www.openidenabled.com/php-openid/
for the specs and architecture http://wiki.openid.net/
a simple tutorial will be http://remysharp.com/2007/12/21/how-to-integrate-openid-as-your-login-system/

like image 24
zudokod Avatar answered Oct 08 '22 19:10

zudokod