2017 © Pedro Peláez
 

library eveonline-socialite-sisi

EveOnline SSO (Singularity) Provider for Laravel Socialite

image

matthewpennell/eveonline-socialite-sisi

EveOnline SSO (Singularity) Provider for Laravel Socialite

  • Wednesday, October 11, 2017
  • by matthewpennell
  • Repository
  • 1 Watchers
  • 0 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Eve Online Provider for Laravel Socialite (Singularity fork)

This provider is forked from https://github.com/nullx27/eveonline-socialite and modified for use with the Singularity test oAuth server and API., (*1)

Installation and config

Install Laravel Socialite (see here: https://github.com/laravel/socialite/blob/2.0/readme.md), (*2)

Install the eveonline socialite (sisi) provider, (*3)

composer require matthewpennell/eveonline-socialite-sisi

Add the following to your .env file:, (*4)

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), (*5)

Laravel <= 5.4

Add the following to your config/app.php, (*6)

matthewpennell\Socialite\EveOnline\EveOnlineServiceProvider::class,

Laravel 5.5

Service Provider is auto discovered., (*7)

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:, (*8)

$user = Socialite::driver('eveonline-sisi')->user();

$token = $user->token;
$expiresIn = $user->expiresIn;
$user->getId();
$user->getName();
$user->getAvatar();

The Versions

11/10 2017

dev-master

9999999-dev

EveOnline SSO (Singularity) Provider for Laravel Socialite

  Sources   Download

MIT

The Requires

 

by Andre Peiffer
by Matthew Pennell

05/10 2017

v0.4

0.4.0.0

EveOnline SSO Provider for Laravel Socialite

  Sources   Download

MIT

The Requires

 

by Andre Peiffer

24/07 2017

v0.3

0.3.0.0

EveOnline SSO Provider for Laravel Socialite

  Sources   Download

MIT

The Requires

 

by Andre Peiffer

18/02 2017

v0.2

0.2.0.0

EveOnline SSO Provider for Laravel Socialite

  Sources   Download

MIT

The Requires

 

by Andre Peiffer

31/08 2016

0.1

0.1.0.0

EveOnline SSO Provider for Laravel Socialite

  Sources   Download

MIT

The Requires

 

by Andre Peiffer