2017 © Pedro Peláez
 

library socialite-zerion

Zerion OAuth2 Provider for Laravel Socialite

image

lonesta/socialite-zerion

Zerion OAuth2 Provider for Laravel Socialite

  • Thursday, December 21, 2017
  • by lonesta
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 16 Versions
  • 0 % Grown

The README.md

Zerion OAuth2 Provider for Laravel Socialite

1. Installation

composer require lonesta/socialite-zerion, (*1)

2. Service Provider

  • Remove Laravel\Socialite\SocialiteServiceProvider from your providers[] array in config\app.php if you have added it already.
  • Add SocialiteProviders\Manager\ServiceProvider to your providers[] array in config\app.php.

For example:, (*2)

'providers' => [
    // a whole bunch of providers
    // remove 'Laravel\Socialite\SocialiteServiceProvider',
    SocialiteProviders\Manager\ServiceProvider::class, // add
];
  • Note: If you would like to use the Socialite Facade, you need to install it.

3. Add the Event and Listeners

  • Add SocialiteProviders\Manager\SocialiteWasCalled::class event to your listen[] array in <app_name>/Providers/EventServiceProvider., (*3)

  • Add your listeners (i.e. the ones from the providers) to the SocialiteProviders\Manager\SocialiteWasCalled[] that you just created., (*4)

  • The listener that you add for this provider is lonesta\SocialiteProviders\Zerion\ZerionExtendSocialite@handle., (*5)

  • Note: You do not need to add anything for the built-in socialite providers unless you override them with your own providers., (*6)

For example:, (*7)

/**
 * The event handler mappings for the application.
 *
 * @var array
 */
protected $listen = [
    \SocialiteProviders\Manager\SocialiteWasCalled::class => [
        'lonesta\SocialiteProviders\Zerion\ZerionExtendSocialite@handle'
    ],
];

4. Services Array and .env

Add to config/services.php:, (*8)

'zerion' => [
    'client_id'     => env('ZERION_ID'),
    'client_secret' => env('ZERION_SECRET'),
    'redirect'      => env('ZERION_REDIRECT'),
],

Append provider values to your .env file: Note: Add both public and secret keys!, (*9)

// other values above
ZERION_ID=your_app_id_for_the_service
ZERION_SECRET=your_app_secret_for_the_service
ZERION_REDIRECT=https://example.com/login

The Versions

21/12 2017

dev-master

9999999-dev

Zerion OAuth2 Provider for Laravel Socialite

  Sources   Download

MIT

The Requires

 

by Avatar lonesta

21/12 2017

v14

14.0.0.0

Zerion OAuth2 Provider for Laravel Socialite

  Sources   Download

MIT

The Requires

 

by Avatar lonesta

21/12 2017

v13

13.0.0.0

zerion OAuth2 Provider for Laravel Socialite

  Sources   Download

MIT

The Requires

 

by Avatar lonesta

21/12 2017

v12

12.0.0.0

zerion OAuth2 Provider for Laravel Socialite

  Sources   Download

MIT

The Requires

 

by Avatar lonesta

10/12 2017

v11

11.0.0.0

zerion OAuth2 Provider for Laravel Socialite

  Sources   Download

MIT

The Requires

 

by Avatar lonesta

10/12 2017

v10

10.0.0.0

zerion OAuth2 Provider for Laravel Socialite

  Sources   Download

MIT

The Requires

 

by Avatar lonesta

10/12 2017

v7

7.0.0.0

zerion OAuth2 Provider for Laravel Socialite

  Sources   Download

MIT

The Requires

 

by Avatar lonesta

10/12 2017

v6

6.0.0.0

zerion OAuth2 Provider for Laravel Socialite

  Sources   Download

MIT

The Requires

 

by Avatar lonesta

10/12 2017

v5

5.0.0.0

zerion OAuth2 Provider for Laravel Socialite

  Sources   Download

MIT

The Requires

 

by Avatar lonesta

17/05 2017

v3.0.2

3.0.2.0

Odnoklassniki OAuth2 Provider for Laravel Socialite

  Sources   Download

MIT

The Requires

 

17/05 2017

v3.0.1

3.0.1.0

Odnoklassniki OAuth2 Provider for Laravel Socialite

  Sources   Download

MIT

The Requires

 

26/01 2017

v3.0.0

3.0.0.0

Odnoklassniki OAuth2 Provider for Laravel Socialite

  Sources   Download

MIT

The Requires

 

29/04 2016

v2.0.1

2.0.1.0

Odnoklassniki OAuth2 Provider for Laravel Socialite

  Sources   Download

MIT

The Requires

 

28/04 2016

v2.0.0

2.0.0.0

Odnoklassniki OAuth2 Provider for Laravel Socialite

  Sources   Download

MIT

The Requires

 

02/07 2015

v1.1.0

1.1.0.0

Odnoklassniki OAuth2 Provider for Laravel Socialite

  Sources   Download

MIT

The Requires

 

26/04 2015

v1.0.0

1.0.0.0

Odnoklassniki OAuth2 Provider for Laravel Socialite

  Sources   Download

MIT

The Requires