Created
May 9, 2018 23:21
-
-
Save matbrgz/e85c4778eb05286c67a09ca10e780942 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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