pinweb/socialite-tjad

Tjad OAuth2 Provider for Laravel Socialite

v2.1.2 2023-11-17 07:36 UTC

This package is auto-updated.

Last update: 2024-04-23 23:57:57 UTC


README

composer require pinweb/socialite-tjad

Add provider event listener

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\\Tjad\\TjadExtendSocialite@handle',
    ],
];

Configuration

Add configuration to config/services.php

'tjad' => [
    'client_id' => env('CLIENT_ID'),
    'client_secret' => env('CLIENT_SECRET'),
    'redirect' => env('REDIRECT'),
    'passport_url' => env('PASSPORT_URL')
],

Usage

return Socialite::driver('tjad')->redirect();