Download the PHP package photon/oauth2-server without Composer
On this page you can find all versions of the php package photon/oauth2-server. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download photon/oauth2-server
More information about photon/oauth2-server
Files in photon/oauth2-server
Download photon/oauth2-server
More information about photon/oauth2-server
Files in photon/oauth2-server
Vendor photon
Package oauth2-server
Short Description OAuth 2 helper for photon
License LGPL-2.1
Homepage http://www.photon-project.com/
Package oauth2-server
Short Description OAuth 2 helper for photon
License LGPL-2.1
Homepage http://www.photon-project.com/
Please rate this library. Is it a good library?
Informations about the package oauth2-server
oauth2-server
Quick start
1) Add the module in your project
composer require "photon/oauth2-server:dev-master"
or for a specific version
composer require "photon/oauth2-server:1.0.0"
2) Create a OAuth2 server class
You need to extends the abstract class "Server". This class perform automatics convertion for $request and $response object.
class MyOAuth2Server extends \photon\auth\oauth2\Server
{
protected function initializeServer(&$server)
{
$storage = new \OAuth2\Storage\Mongo();
$server->addStorage($storage);
$server->addGrantType(new \OAuth2\GrantType\AuthorizationCode($storage));
...
}
}
You can use this class like the original "\OAuth2\Server".
3) Define your oauth server class in the project configuration
'oauth_server' => '\foo\bar\MyOAuth2Server'
4) Enjoy !
All versions of oauth2-server with dependencies
PHP Build Version
Package Version
The package photon/oauth2-server contains the following files
Loading the files please wait ....