superbalist/laravel-lusitanian-oauth-session-store

This package is abandoned and no longer maintained. No replacement package was suggested.

A Laravel session storage interface for the lusitanian/oauth library

Installs: 7 487

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 40

Forks: 1

Open Issues: 0

pkg:composer/superbalist/laravel-lusitanian-oauth-session-store

1.0.0 2016-01-28 06:53 UTC

This package is auto-updated.

Last update: 2022-07-13 18:59:35 UTC


README

A Laravel session storage interface for the lusitanian/oauth library

Author StyleCI Software License Packagist Version Total Downloads

Installation

composer require superbalist/laravel-lusitanian-oauth-session-store

Usage

use App;
use OAuth\ServiceFactory;
use Superbalist\LusitanianOAuth\LaravelTokenSessionStore;

// this example demonstrates creating a github service

$factory = new ServiceFactory();
$store = App::make('session.store');
$storage = new LaravelTokenSessionStore($store);

$credentials = [
    '[[github key]]',
    '[[github secret]]',
    '[[url]]',
];

$gitHub = $factory->createService('GitHub', $credentials, $storage, array('user'));