superbalist/laravel-lusitanian-oauth-session-store

该包已被弃用,不再维护。没有建议替代包。

Laravel 会话存储接口,用于 lusitanian/oauth 库

1.0.0 2016-01-28 06:53 UTC

This package is auto-updated.

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


README

Laravel 会话存储接口,用于 lusitanian/oauth 库

Author StyleCI Software License Packagist Version Total Downloads

安装

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

使用

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