OAuth

Social Login Configurations

Getting Super Powers of Social Login

Add Facebook and Github in config/services.php

 'github' => [
        'client_id' => env('GITHUB_CLIENT_ID'),
        'client_secret' => env('GITHUB_CLIENT_SECRET'),
        'redirect' => env('GITHUB_REDIRECT_URL'),
    ],
    'facebook' => [
        'client_id' => env('FACEBOOK_CLIENT_ID'),  // Your Facebook App ID
        'client_secret' => env('FACEBOOK_CLIENT_SECRET'), // Your Facebook App Secret
        'redirect' => env('FACEBOOK_REDIRECT_URL'),
    ],

Please generate your own api key and client id according to relative OAuth services

Then in your env file.

GITHUB_CLIENT_ID=
GITHUB_CLIENT_SECRET=
GITHUB_REDIRECT_URL=http://adminetic.test/sign-in/github/redirect

FACEBOOK_CLIENT_ID=
FACEBOOK_CLIENT_SECRET=
FACEBOOK_REDIRECT_URL=http://adminetic.test/sign-in/facebook/redirect

That's it now you have oath services

You can enable/disable oauth services from config/adminetic.php file

  /*
    |--------------------------------------------------------------------------
    | OAuth Socialite Configuration
    |--------------------------------------------------------------------------
    |
    */
    'enable_socialite' => true,
    'github_socialite' => true,
    'facebook_socialite' => true,

Last updated