rapiro/oauth2server-lumen 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

rapiro/oauth2server-lumen

最新稳定版本:0.1.7

Composer 安装命令:

composer create-project rapiro/oauth2server-lumen

包简介

PHP OAuth 2.0 Server for Lumen

README 文档

README

OAuth 2.0 authorization server and resource server for the Laravel framework. Standard compliant thanks to the amazing work by The League of Extraordinary Packages OAuth 2.0 authorization server and resource server.

The package assumes you have a good-enough knowledge of the principles behind the OAuth 2.0 Specification.

Version Compability

Lumen OAuth Server PHP
5.0.x 4.1.x >= 5.5

Documentation

This package features an extensive wiki to help you getting started implementing an OAuth 2.0 Server in your Laravel app.

Support

Bugs and feature request are tracked on GitHub

License

This package is released under the MIT License.

Credits

#The code on which this package are based:

OAuth2Server-Lumen

PHP OAuth 2.0 Server for Lumen

Installation

Via composer

Run composer require 'rapiro/oauth2server-lumen:0.1.*'

Register package

In your bootstrap/app.php register service providers

$app->register('Rapiro\OAuth2Server\Providers\StorageServiceProvider');
$app->register('Rapiro\OAuth2Server\Providers\OAuth2ServerServiceProvider');

... and middleware

$app->middleware([
    'Rapiro\OAuth2Server\Middleware\OAuthExceptionHandlerMiddleware'
]);

... and route middleware

$app->routeMiddleware([
    'check-authorization-params' => 'Rapiro\OAuth2Server\Middleware\CheckAuthCodeRequestMiddleware',
    'csrf' => 'Laravel\Lumen\Http\Middleware\VerifyCsrfToken',
    'oauth' => 'Rapiro\OAuth2Server\Middleware\OAuthMiddleware',
    'oauth-owner' => 'Rapiro\OAuth2Server\Middleware\OAuthOwnerMiddleware'
]);

Copy config

Copy vendor/Rapiro/oauth2server-lumen/config/oauth2.php to your own config folder (config/oauth2.php in your project root). Copy vendor/Rapiro/oauth2server-lumen/config/auth.php to your own config folder (config/oauth2.php in your project root).

It has to be the correct config folder as it is registered using $app->configure().

Copy models

Copy vendor/Rapiro/oauth2server-lumen/Models/ folder to your own app folder (app/ in your project root).

Migrate

In bootstrap/app.php file and uncomment $app->withFacades(); and $app->withEloquent();

Run php artisan migrate --path=vendor/Rapiro/oauth2server-lumen/database/migrations

统计信息

  • 总下载量: 30
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-06-04