| Package Data | |
|---|---|
| Maintainer Username: | jrtashjian |
| Maintainer Contact: | jrtashjian@gmail.com (JR Tashjian) |
| Package Create Date: | 2016-11-26 |
| Package Last Update: | 2018-01-16 |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-10-25 15:02:21 |
| Package Statistics | |
|---|---|
| Total Downloads: | 474 |
| Monthly Downloads: | 0 |
| Daily Downloads: | 0 |
| Total Stars: | 4 |
| Total Watchers: | 2 |
| Total Forks: | 1 |
| Total Open Issues: | 1 |
A Laravel Socialite provider for EVE Online SSO.
// This assumes that you have composer installed globally
composer require jrtashjian/socialiteproviders-eveonline
Laravel\Socialite\SocialiteServiceProvider from your providers[] array in config\app.php if you have added it already.\SocialiteProviders\Manager\ServiceProvider::class to your providers[] array in config\app.php.For Example:
'providers' => [
// a whole bunch of providers
// remove 'Laravel\Socialite\SocialiteServiceProvider',
\SocialiteProviders\Manager\ServiceProvider::class, // add
];
SocialiteProviders\Manager\SocialiteWasCalled event to your listen[] array in <app_name>/Providers/EventServiceProvider.SocialiteProviders\Manager\SocialiteWasCalled[] that you just created.'SocialiteProviders\EveOnline\EveOnlineExtendSocialite@handle',.For example:
/**
* The event handler mappings for the application.
*
* @var array
*/
protected $listen = [
\SocialiteProviders\Manager\SocialiteWasCalled::class => [
// add your listeners (aka providers) here
'SocialiteProviders\EveOnline\EveOnlineExtendSocialite@handle',
],
];
If you add environment values to your .env as exactly shown below, you do not need to add an entry to the services array.
.env file// other values above
EVEONLINE_KEY=yourkeyfortheservice
EVEONLINE_SECRET=yoursecretfortheservice
EVEONLINE_REDIRECT_URI=https://example.com/login
config/services.php.You do not need to add this if you add the values to the .env exactly as shown above. The values below are provided as a convenience in the case that a developer is not able to use the .env method
'eveonline' => [
'client_id' => env('EVEONLINE_KEY'),
'client_secret' => env('EVEONLINE_SECRET'),
'redirect' => env('EVEONLINE_REDIRECT_URI'),
],
You should now be able to use it like you would regularly use Socialite (assuming you have the facade installed):
return Socialite::driver('eveonline')->redirect();
If you have any issues using this package, create a new Issue.
This code is licensed under the MIT License.