Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save matbrgz/e85c4778eb05286c67a09ca10e780942 to your computer and use it in GitHub Desktop.
Save matbrgz/e85c4778eb05286c67a09ca10e780942 to your computer and use it in GitHub Desktop.
You will need to run:
composer require laravel/socialite
Then follow the directions regarding socialite on: https://laravel.com/docs/
Please review the setup details for socialite including your provider details.
You will want to add things like:
This to the provdiers in the app config:
'providers' => [
// Other service providers...
Laravel\Socialite\SocialiteServiceProvider::class,
],
Also you will need to add your providers to your services: (example)
'github' => [
'client_id' => 'your-github-app-id',
'client_secret' => 'your-github-app-secret',
'redirect' => 'http://domain/auth/github/callback',
'scopes' => ['user:email'],
],
This to the aliases in the app config:
'Socialite' => Laravel\Socialite\Facades\Socialite::class,
Add this line to (app/Providers/RouteServiceProvider.php):
require base_path('routes/socialite.php');
Finished setting up a basic socialite structure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment