superbalist / laravel-lusitanian-oauth-session-store
A Laravel session storage interface for the lusitanian/oauth library
Installs: 7 339
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 40
Forks: 1
Open Issues: 0
Requires
- php: >=5.3.0
- illuminate/session: >=4.0.0
- lusitanian/oauth: 0.8.*
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
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'));