2017 © Pedro Peláez
 

project oauth2server-lumen

PHP OAuth 2.0 Server for Lumen

image

rapiro/oauth2server-lumen

PHP OAuth 2.0 Server for Lumen

  • Friday, June 19, 2015
  • by amaroRafael
  • Repository
  • 1 Watchers
  • 0 Stars
  • 22 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

PHP OAuth 2.0 Server for Lumen

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., (*1)

The package assumes you have a good-enough knowledge of the principles behind the OAuth 2.0 Specification., (*2)

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., (*3)

Support

Bugs and feature request are tracked on GitHub, (*4)

License

This package is released under the MIT License., (*5)

Credits

The code on which this package are based:

OAuth2Server-Lumen

PHP OAuth 2.0 Server for Lumen, (*6)

Installation

Via composer

Run composer require 'rapiro/oauth2server-lumen:0.1.*', (*7)

Register package

In your bootstrap/app.php register service providers, (*8)

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

... and middleware, (*9)

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

... and route middleware, (*10)

$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)., (*11)

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

Copy models

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

Migrate

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

Run php artisan migrate --path=vendor/Rapiro/oauth2server-lumen/database/migrations, (*15)

The Versions

19/06 2015

dev-master

9999999-dev

PHP OAuth 2.0 Server for Lumen

  Sources   Download

MIT

The Requires

 

by Rafael Luis Neves Amaro

laravel api lumen oauth server oauth2

19/06 2015

0.1.7

0.1.7.0

PHP OAuth 2.0 Server for Lumen

  Sources   Download

MIT

The Requires

 

by Rafael Luis Neves Amaro

laravel api lumen oauth server oauth2

08/06 2015

0.1.6

0.1.6.0

PHP OAuth 2.0 Server for Lumen

  Sources   Download

MIT

The Requires

 

by Rafael Luis Neves Amaro

laravel api lumen oauth server oauth2

05/06 2015

0.1.5

0.1.5.0

PHP OAuth 2.0 Server for Lumen

  Sources   Download

MIT

The Requires

 

by Rafael Luis Neves Amaro

laravel api lumen oauth server oauth2

05/06 2015

0.1.4

0.1.4.0

PHP OAuth 2.0 Server for Lumen

  Sources   Download

MIT

The Requires

 

by Rafael Luis Neves Amaro

laravel api lumen oauth server oauth2

05/06 2015

0.1.3

0.1.3.0

PHP OAuth 2.0 Server for Lumen

  Sources   Download

MIT

The Requires

 

by Rafael Luis Neves Amaro

laravel api lumen oauth server oauth2

05/06 2015

0.1.2

0.1.2.0

PHP OAuth 2.0 Server for Lumen

  Sources   Download

MIT

The Requires

 

by Rafael Luis Neves Amaro

laravel api lumen oauth server oauth2