2017 © Pedro Peláez
 

library oauth2-server-redis

Redis storage adapter for the League's PHP OAuth 2.0 server.

image

fahmiardi/oauth2-server-redis

Redis storage adapter for the League's PHP OAuth 2.0 server.

  • Monday, December 15, 2014
  • by fahmiardi
  • Repository
  • 1 Watchers
  • 2 Stars
  • 33 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Redis Storage Adapter

This is a Redis storage adapter for the League's PHP OAuth 2.0 server which is maintained by Alex Bilbie., (*1)

Build Status, (*2)

Foreword

This adapter is for the fourth version of the OAuth 2.0 server and as such is prone to breakages as the server itself is being developed., (*3)

Usage

This storage adapter uses Predis as an interface to Redis. Make sure you have Redis installed on your machine to use this adapter., (*4)

To begin you must new up and instance of the Predis client., (*5)

$redis = new Predis\Client;

Once you have an instance of League\OAuth2\Server\AuthorizationServer you can set the different storages., (*6)

$server->setClientStorage(new Lewis\OAuth2\Server\Storage\RedisClient($redis));
$server->setSessionStorage(new Lewis\OAuth2\Server\Storage\RedisSession($redis));
$server->setAccessTokenStorage(new Lewis\OAuth2\Server\Storage\RedisAccessToken($redis));
$server->setRefreshTokenStorage(new Lewis\OAuth2\Server\Storage\RedisRefreshTokenStorage($redis));
$server->setAuthCodeStorage(new Lewis\OAuth2\Server\Storage\RedisAuthCode($redis));
$server->setScopeStorage(new Lewis\OAuth2\Server\Storage\RedisScope($redis));

License

This package is licensed under the BSD 2-Clause license., (*7)

The Versions

15/12 2014

dev-patch-trait

dev-patch-trait

Redis storage adapter for the League's PHP OAuth 2.0 server.

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

redis server league oauth2 adpater

10/05 2014

dev-master

9999999-dev

Redis storage adapter for the League's PHP OAuth 2.0 server.

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

redis server league oauth2 adpater