socialiteproviders/ufutx-socialite

Ufutx OAuth2 Provider for Laravel Socialite


Keywords
laravel, oauth, oauth1, oauth2, social-media, socialite, socialite-providers
License
MIT

Documentation

Ufutx

composer require socialiteproviders/ufutx

Installation & Basic Usage

Please see the Base Installation Guide, then follow the provider specific instructions below.

Add configuration to config/services.php

'ufutx' => [    
  'client_id' => env('UFUTX_CLIENT_ID'),  
  'client_secret' => env('UFUTX_CLIENT_SECRET'),  
  'redirect' => env('UFUTX_REDIRECT_URI') 
],

Add provider event listener

Configure the package's listener to listen for SocialiteWasCalled events.

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\\Ufutx\\UfutxExtendSocialite@handle',
    ],
];

Usage

You should now be able to use the provider like you would regularly use Socialite (assuming you have the facade installed):

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

Returned User fields

  • id
  • name
  • email