Skip to content
This repository has been archived by the owner on Jul 4, 2022. It is now read-only.

Superbalist/laravel-lusitanian-oauth-session-store

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

laravel-lusitanian-oauth-session-store

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'));