2017 © Pedro Peláez
 

library socialite-driver

Codepotato OAuth2 Provider for Laravel Socialite

image

codepotatoltd/socialite-driver

Codepotato OAuth2 Provider for Laravel Socialite

  • Friday, August 26, 2016
  • by iWader
  • Repository
  • 1 Watchers
  • 1 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Codepotato oAuth Provider for Laravel Socialite

This package provides oAuth support for Codepotato using laravel/socialite, (*1)

Contents

Installation

Require the package using composer, (*2)

composer require codepotatoltd/socialite-driver

This package utilises the Socialite Providers community project. We must remove the default laravel/socialite service provider and use theirs in place., (*3)

'providers' => [
   ...

   SocialiteProviders\Manager\ServiceProvider::class,

   ...
]

Next we need to register the socialite providers we wish to use by adding the event to your EventServiceProvider., (*4)

protected $listen = [
    \SocialiteProviders\Manager\SocialiteWasCalled::class => [
        'Codepotato\Socialite\CodepotatoExtendSocialite@handle',
    ],
];

Finally we just need to add our oAuth keys to config/services.php, (*5)

'codepotato' => [
    'key' => env('CODEPOTATO_CLIENT_KEY'),
    'secret' => env('CODEPOTATO_CLIENT_SECRET'),
    'redirect' => env('CODEPOTATO_REDIRECT_URI'),
],

Testing

bash $ composer test, (*6)

Credits

License

The MIT License (MIT). Please see License File for more information., (*7)

The Versions

26/08 2016

dev-master

9999999-dev https://github.com/codepotatoltd/socialite-driver

Codepotato OAuth2 Provider for Laravel Socialite

  Sources   Download

MIT

The Requires

 

The Development Requires