Laravel Single Sign-On

cyberhicham picture cyberhicham · Jan 27, 2013 · Viewed 10.1k times · Source

Is there any OpenID implementation on Laravel ? (Provider and Consumer)

What I'm trying to do is having One CoreApp acting like an OpenID Provider, and the otherApps as OpenID Consumers so the user can choose between :

  • Login with the CoreApp OpenID system
  • Login with other OpenID Providers (Google, Facebook, Twitter...)
  • Creating an account which means the user will be redirect to the CoreApp for creating an other account and will use that account as OpenID account to login with it on his App.

I see that oAuth (1 & 2) are meant too for this usage ? any Laravel tutorial/howto ?

Due to the beta stage of L4 (Beta1), I guess I'm good to go with L3 for production ?

I'm fairly new to Laravel, Still in the RTFM level :)

Answer

pkat picture pkat · Jan 28, 2013

Check out HybridAuth. It's framework agnostic and integrates may OAuth and OAuth 2.0 providers.

Here is a basic example on how to implement into Laravel 4: http://www.mrcasual.com/on/coding/laravel4-package-management-with-composer/