matthewpennell / eveonline-socialite-sisi
EveOnline SSO (Singularity) Provider for Laravel Socialite
Installs: 285
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 9
pkg:composer/matthewpennell/eveonline-socialite-sisi
Requires
- php: ^5.6 || ^7.0
- guzzlehttp/guzzle: ^6.3
- laravel/socialite: 3.*
This package is not auto-updated.
Last update: 2025-12-24 09:26:22 UTC
README
This provider is forked from https://github.com/nullx27/eveonline-socialite and modified for use with the Singularity test oAuth server and API.
Installation and config
Install Laravel Socialite (see here: https://github.com/laravel/socialite/blob/2.0/readme.md)
Install the eveonline socialite (sisi) provider
composer require matthewpennell/eveonline-socialite-sisi
Add the following to your .env file:
TESTEVEONLINE_CLIENT_ID=
TESTEVEONLINE_CLIENT_SECRET=
TESTEVEONLINE_REDIRECT=
(Get your Eve Online SSO credentials here: https://developers.testeveonline.com/applications/ - note that this is the Singularity version of the developers site)
Laravel <= 5.4
Add the following to your config/app.php
matthewpennell\Socialite\EveOnline\EveOnlineServiceProvider::class,
Laravel 5.5
Service Provider is auto discovered.
Usage
<?php
namespace App\Http\Controllers\Auth;
use Socialite;
class AuthController extends Controller
{
/**
* Redirect the user to the Eve Online authentication page.
*
* @return Response
*/
public function redirectToProvider()
{
return Socialite::driver('eveonline-sisi')->redirect();
}
/**
* Obtain the user information from Eve Online.
*
* @return Response
*/
public function handleProviderCallback()
{
$user = Socialite::driver('eveonline-sisi')->user();
//dd($user);
}
}
Retrieving User Details
Once you have a user instance, you can grab a few more details about the user:
$user = Socialite::driver('eveonline-sisi')->user(); $token = $user->token; $expiresIn = $user->expiresIn; $user->getId(); $user->getName(); $user->getAvatar();