-
Notifications
You must be signed in to change notification settings - Fork 21
Social Configuration
Erik Campobadal edited this page Sep 13, 2016
·
3 revisions
The social configuration makes it easy to integrate social auth into Laralum.
As we use laravel/socialite the only thing that we need is you to place the correct configuration into config/services.php
Official Documentation for socialite: Socialite Documentation
Official supported providers:
- Github
- Allows user register with only social account
- Allows user login with only social account
- Allows to link a social account if already registered
'github' => [
'client_id' => 'your-github-app-id',
'client_secret' => 'your-github-app-secret',
'redirect' => 'http://your-callback-url',
],
NOTE The call back URL you'll need to provite is found under /social/{provider}/callback
So for example if we're using github and our domain is https://erik.cat this is our config:
'github' => [
'client_id' => 'your-github-app-id',
'client_secret' => 'your-github-app-secret',
'redirect' => 'https://erik.cat/social/github/callback',
],
client_id
and client_secret
can be found under the following places after you've created the app:
- Github - Create APP
- Facebook - Create APP
- Twitter - Create APP
- Github - Create APP
Once this is configured everything will be working and ready to go!