Download the PHP package numesia/laravel-franceconnect-proxy without Composer
On this page you can find all versions of the php package numesia/laravel-franceconnect-proxy. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download numesia/laravel-franceconnect-proxy
More information about numesia/laravel-franceconnect-proxy
Files in numesia/laravel-franceconnect-proxy
Package laravel-franceconnect-proxy
Short Description France connect OAuth2 Provider for Laravel Socialite
License MIT
Informations about the package laravel-franceconnect-proxy
Laravel France Connect
France connect OAuth2 Provider for Laravel Socialite (proxy version).
INSTALLATION
1. COMPOSER
2. SERVICE PROVIDER
- Remove
Laravel\Socialite\SocialiteServiceProvider
from yourproviders[]
array inconfig\app.php
if you have added it already. - Add
SocialiteProviders\Manager\ServiceProvider::class
to yourproviders[]
array inconfig\app.php
.
For example:
Note: If you would like to use the Socialite Facade, you need to install it.
3. ADD THE EVENT AND LISTENERS
-
Add SocialiteProviders\Manager\SocialiteWasCalled event to your
listen[]
array in<app_name>/Providers/EventServiceProvider
. -
Add your listeners (i.e. the ones from the providers) to the
SocialiteProviders\Manager\SocialiteWasCalled[]
that you just created. - The listener that you add for this provider is
'SocialiteProviders\LaravelFranceConnect\FranceConnectExtendSocialite@handle',
.
Note: You do not need to add anything for the built-in socialite providers unless you override them with your own providers.
For example:
4. ENVIRONMENT VARIABLES
Append provider values to your .env file
USAGE
you are ready to authenticate users! You will need two routes: one for redirecting the user to the OAuth provider, and another for receiving the callback from the provider after authentication.
We will access Socialite using the Socialite facade (must install socialite):
All versions of laravel-franceconnect-proxy with dependencies
socialiteproviders/manager Version ~2.0 || ~3.0 || ~4.0
firebase/php-jwt Version ^6.4