Socialite Providers

repository·master·Indexed 20 days ago

https://github.com/socialiteproviders/providers

A collection of community-maintained OAuth providers for the Laravel Socialite ecosystem. It extends the official Laravel Socialite package by providing additional social authentication drivers for various services, including Acclaim, Admitad, Adobe, Aikido, Amazon, amoCRM, and AngelList.

Tokens
175.4K
Snippets
1.2K
Records
1.4K
Agent score
68%

What's inside Socialite Providers

  1. Important note regarding YouTube user data

    master
    If the authenticated user does not have a YouTube channel, all fields in the returned user object will be null. This is because YouTube no longer automatically creates channels for all Google users. If you only need general Google profile information, consider using the main Google provider instead.
  2. Register the SURFconext provider event listener

    master

    To make the provider available to Socialite, you must register an event listener for SocialiteWasCalled. The implementation depends on your Laravel version.

    Laravel 11+

    In Laravel 11, add the listener using the Event facade within the boot method of your AppServiceProvider.

    Laravel 10 or below

    Add the provider's handler to the $listen array in your app/Providers/EventServiceProvider.

    // Laravel 11+ (in AppServiceProvider::boot)
    Event::listen(function (\SocialiteProviders\Manager\SocialiteWasCalled $event) {
        $event->extendSocialite('surfconext', \SocialiteProviders\SURFconext\Provider::class);
    });
    
    // Laravel 10 or below (in EventServiceProvider)
    protected $listen = [
        \SocialiteProviders\Manager\SocialiteWasCalled::class => [
            // ... other providers
            \SocialiteProviders\SURFconext\SURFconextExtendSocialite::class.'@handle',
        ],
    ];