| Package Data | |
|---|---|
| Maintainer Username: | codepotato |
| Maintainer Contact: | wade@iwader.co.uk (iWader) |
| Package Create Date: | 2016-08-22 |
| Package Last Update: | 2016-08-26 |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-10-22 03:00:07 |
| Package Statistics | |
|---|---|
| Total Downloads: | 8 |
| Monthly Downloads: | 0 |
| Daily Downloads: | 0 |
| Total Stars: | 1 |
| Total Watchers: | 0 |
| Total Forks: | 0 |
| Total Open Issues: | 0 |
This package provides oAuth support for Codepotato using laravel/socialite
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'),
],
$ composer test
The MIT License (MIT). Please see License File for more information.