socialiteproviders/kinde is a Laravel package for kinde oauth2 provider for laravel socialite.
It currently has 0 GitHub stars and 3.350 downloads on Packagist (latest version 4.0.0).
Install it with composer require socialiteproviders/kinde.
Discover more Laravel packages by socialiteproviders
or browse all Laravel packages to compare alternatives.
Last updated
This is a provider for Kinde
composer require socialiteproviders/kinde
Please see the Base Installation Guide, then follow the provider specific instructions below.
config/services.php'kinde' => [
'domain' => env('KINDE_DOMAIN'),
'client_id' => env('KINDE_CLIENT_ID'),
'client_secret' => env('KINDE_CLIENT_SECRET'),
'redirect' => env('KINDE_CALLBACK_URL'),
],
.envKinde provides a customer URL for your different projects. For this reason you need to provide a domain.
KINDE_DOMAIN=https://example.kinde.com
In Laravel 11, the default EventServiceProvider provider was removed. Instead, add the listener using the listen method on the Event facade, in your AppServiceProvider boot method.
Event::listen(function (\SocialiteProviders\Manager\SocialiteWasCalled $event) {
$event->extendSocialite('kinde', \SocialiteProviders\Kinde\Provider::class);
});
Add the event to your listen[] array in app/Providers/EventServiceProvider. See the Base Installation Guide for detailed instructions.
protected $listen = [
\SocialiteProviders\Manager\SocialiteWasCalled::class => [
// ... other providers
\SocialiteProviders\Kinde\KindeExtendSocialite::class.'@handle',
],
];
You should now be able to use the provider like you would regularly use Socialite (assuming you have the facade installed):
return Socialite::driver('kinde')->redirect();
idnicknamenameemailavatarIf you need to access the org_code or permissions fields, you can retrieve those from the raw user array:
$user = Socialite::driver('kinde')->user();
$rawUser = $user->getRaw();
$orgCode = $rawUser['org_code'];
$permissions = $rawUser['permissions'];