2017 © Pedro Peláez
 

library oauth2-server

OAuth 2 helper for photon

image

photon/oauth2-server

OAuth 2 helper for photon

  • Sunday, February 19, 2017
  • by delkia
  • Repository
  • 2 Watchers
  • 0 Stars
  • 112 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

oauth2-server

Build Status, (*1)

Quick start

1) Add the module in your project, (*2)

composer require "photon/oauth2-server:dev-master"

or for a specific version, (*3)

composer require "photon/oauth2-server:1.0.0"

2) Create a OAuth2 server class, (*4)

You need to extends the abstract class "Server". This class perform automatics convertion for $request and $response object., (*5)

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

3) Define your oauth server class in the project configuration, (*7)

'oauth_server' => '\foo\bar\MyOAuth2Server'

4) Enjoy !, (*8)

The Versions

19/02 2017

dev-master

9999999-dev http://www.photon-project.com/

OAuth 2 helper for photon

  Sources   Download

LGPL-2.1

The Requires

 

server oauth2 photon

19/02 2017

v1.1.1

1.1.1.0 http://www.photon-project.com/

OAuth 2 helper for photon

  Sources   Download

LGPL-2.1

The Requires

 

server oauth2 photon

18/02 2017

v1.1.0

1.1.0.0 http://www.photon-project.com/

OAuth 2 helper for photon

  Sources   Download

LGPL-2.1

The Requires

 

server oauth2 photon

06/02 2017

v1.0.0

1.0.0.0 http://www.photon-project.com/

OAuth 2 helper for photon

  Sources   Download

LGPL-2.1

The Requires

 

server oauth2 photon