codepotatoltd/socialite-driver

Codepotato OAuth2 Provider for Laravel Socialite
8 1
Install
composer require codepotatoltd/socialite-driver
PHP:^5.6||^7.0
License:MIT
Last Updated:Aug 26, 2016
Links: GitHub  ·  Packagist
Maintainer: codepotato

Codepotato oAuth Provider for Laravel Socialite

This package provides oAuth support for Codepotato using laravel/socialite

Contents

Installation

Require the package using composer

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.

'providers' => [
   ...
   
   SocialiteProviders\Manager\ServiceProvider::class,
   
   ...
]

Next we need to register the socialite providers we wish to use by adding the event to your EventServiceProvider.

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

Finally we just need to add our oAuth keys to config/services.php

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

Testing

$ composer test

Credits

License

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

Related Packages

erirk/paypalpayment

laravel-paypalpayment is simple package help you process direct credit card paym...

0
gabrieloliverio/laravel5-generators

Database metadata-based generators for Laravel 5

1
doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

628,058,007 9,707
laravel/framework

The Laravel Framework.

576,155,700 34,907
laravel/tinker

Powerful REPL for the Laravel framework.

485,678,092 7,440