Skip to main content

Socialite

FilamentFlow comes with Socialite integration. You can customize the socialite configuration including the providers by editing the following files:

  • config/filament-flow.php
  • config/services.php
  • resources/views/filament/app/pages/auth/register.blade.php

Configure Socialite for FilamentFlow

There are two steps to configuring Socialite for FilamentFlow (but also don't forget actually setting your client IDs and client secrets in the .env file as described in the Laravel Socialite documentation):

Enable Socialite

Add the following to the socialite key in the config/filament-flow.php file:

config/filament-flow.php
 'socialite' => [
'enabled' => true/false,
'providers' => [
// your array of providers here. Each provider should have a key that matches the
// provider name in the services array.
]
]

Configure Socialite Providers

Add blocks similar to the following to the services array in the config/services.php file for each provider you want to use:

config/services.php
 'github' => [
'client_id' => env('GITHUB_CLIENT_ID'),
'client_secret' => env('GITHUB_CLIENT_SECRET'),
'redirect' => env('GITHUB_REDIRECT_URI'),
'label' => 'GitHub', // Optional
'color' => '#333', // Optional
'outlined' => false, // Optional
'stateless' => false, // Optional
'icon' => 'fab-github', // Optional
],

Important Notes

Note that only the providers you add to the socialite key in the config/filament-flow.php file will be enabled and they must be configured in the services.php file.

Any provider in services.php that is missing a client_id or client_secret will be ignored!!!