2017 © Pedro Peláez
 

library socialite-exactonline

Exact Online OAuth2 Provider for Laravel Socialite

image

michielfb/socialite-exactonline

Exact Online OAuth2 Provider for Laravel Socialite

  • Tuesday, September 13, 2016
  • by michielfb
  • Repository
  • 1 Watchers
  • 2 Stars
  • 88 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 2 % Grown

The README.md

Exact Online Socialite Provider

This package extends the laravel/socialite package. It allows to create a 'login with Exact Online' feature within minutes., (*1)

Installation

Use the steps below to install the package., (*2)

1. Composer

composer require michielfb/socialite-exactonline, (*3)

2. Register the service provider

  • Remove the default SocialiteServiceProvider from your providers array in config/app.php
  • Add SocialiteProviders\Manager\ServiceProvider::class to your providers array in config/app.php

3. Add an event and listener

Add the listener to the listen array in EventServiceProvider :, (*4)

protected $listen = [
    ...
    \SocialiteProviders\Manager\SocialiteWasCalled::class => [
        '\Michielfb\SocialiteExactonline\ExactonlineExtendsSocialite@handle',
    ],
    ...
];

4. Register the client_id and client_secret

Add a section to the array app/services.php. The base_url is optional. By default it will use the url for The Netherlands., (*5)

return [
    ...
    'exactonline' => [
        'client_id' => env('EXACTONLINE_CLIENT_ID'),
        'client_secret' => env('EXACTONLINE_CLIENT_SECRET'),
        'redirect' => env('EXACTONLINE_CALLBACK_URL'),
        'base_url' => env('EXACTONLINE_BASE_URL'),
    ],
    ....
];

The Versions

13/09 2016

dev-master

9999999-dev

Exact Online OAuth2 Provider for Laravel Socialite

  Sources   Download

MIT

The Requires

 

by Avatar michielfb

17/08 2016

0.1.1

0.1.1.0

Exact Online OAuth2 Provider for Laravel Socialite

  Sources   Download

MIT

The Requires

 

by Avatar michielfb