Skip to content

Social Configuration

Erik Campobadal edited this page Sep 13, 2016 · 3 revisions

Social Configuration

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:

  • Google
  • Facebook
  • Twitter
  • Github

Features

  • Allows user register with only social account
  • Allows user login with only social account
  • Allows to link a social account if already registered

Example configuration:

'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',
],

Create APPS

client_id and client_secret can be found under the following places after you've created the app:

Once this is configured everything will be working and ready to go!

Clone this wiki locally