social-authentication-laravel

Social Authentication in Laravel 5.3

In my previous posts Authentication with Twitter,  Authentication with Google  , Authentication with Facebook  and Authentication with Linkedin explains social authentication using Laravel socialite package as individual. Now it’s time to combine all these into one example as below. Just download this project and put api and secrete keys in config/services.php.

step 1 : Install  Socialite Package 

step 2 : set the configurations

add providers and aliases in config file i.e., config/app.php

step 3 : Create Google,Facebook,Twitter and Linkedin Apps

facebook-laravel-login

 

login-with-twitter-using-laravel-2

login-with-twitter-using-laravel-3

screen1

login-with-linkedin-using-laravel-3

Creating google app

step 4 : set app id, secret and call back url in config file (i.e., config/services.php)

 

step 5: Config routing (app/Http/routes.php)

 

step 6: Controller (app/Http/Controllers/AuthController.php)

 

step 7: Views

sample screen shorts :

laravel-social-authentication-1

login-with-linkedin-using-laravel-4

  • Riyaz Khan

    Good job Man!!! Hats off.