2017 © Pedro Peláez
 

library oauth-clients-generator-redis

Redis Client Generator for the League's PHP OAuth 2.0 server

image

vinelab/oauth-clients-generator-redis

Redis Client Generator for the League's PHP OAuth 2.0 server

  • Friday, April 29, 2016
  • by Vinelab
  • Repository
  • 4 Watchers
  • 1 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

Redis OAuth2 Client Generator

alt tag, (*1)

Redis Client Generator to be used with ThePhpLeague's OAuth2 Package, (*2)

Quick Reference

Installation

Composer

Use the command:, (*3)

composer require vinelab/oauth-clients-generator-redis

otherwise, add:, (*4)

"vinelab/oauth-clients-generator-redis": "dev-master", (*5)

to your composer.json file and do a composer update., (*6)

Commands

Client Generator comes with a handy command line tool for usage straight from the command line. Once you install using composer an oauth binary will be in your vendor/bin/. To make things easier you can run, (*7)

export PATH="./vendor/bin:$PATH" to use oauth straight instead of ./vendor/bin/oauth, (*8)

use oauth list for a list of available commands and oauth --help [command] for more info about each of them., (*9)

Commands
  • oauth
    • Options
      • clients:create: Create a new client
      • clients:delete: Delete a specific client
      • clients:list: List all available clients
      • clients:fetch: Fetch a specific client
        • --show-secret: Show a specific client's secret
      • clients:regenerate-secret: Re-generate a client's secret

Create Client

In order to create a new client, use the command:, (*10)

oauth clients:create {name} {password} {redirect_uri = ''} {grantType = 'client_credentials'},, (*11)

where:, (*12)

name => The name of the application [REQUIRED],, (*13)

password => A password to use when you need to delete a client or re-generate his secret [REQUIRED],, (*14)

redirect_uri => The redirect URI you want to make use of [OPTIONAL],, (*15)

grantType => The grant type you want to use [OPTIONAL], (*16)

Delete Client

In order to delete a specific client, use the command:, (*17)

oauth clients:delete {client_id} {password},, (*18)

where:, (*19)

client_id => The client's id [REQUIRED],, (*20)

password => The password the user used when created the client [REQUIRED], (*21)

List Clients

In order to list all available clients, use the command:, (*22)

oauth clients:list., (*23)

Fetch Client (or client's secret)

In order to fetch a specific client or just fetch a client's secret, use the command:, (*24)

oauth clients:fetch {client_id},, (*25)

where:, (*26)

client_id => The client's id [REQUIRED],, (*27)

and in case you want to fetch a specific user's secret, you can use the --show-secret flag in the command:, (*28)

eg. oauth clients:fetch {client_id} --show-secret {password}, (*29)

where:, (*30)

password => The password the user used when created the client [REQUIRED], (*31)

Re-generate Client's Secret

In order to re-generate a specific client's secret, use the command:, (*32)

oauth clients:regenerate-secret {client_id} {password},, (*33)

where:, (*34)

client_id => The client's id [REQUIRED],, (*35)

password => The password the user used when created the client [REQUIRED], (*36)

The Versions

29/04 2016

dev-master

9999999-dev

Redis Client Generator for the League's PHP OAuth 2.0 server

  Sources   Download

MIT

The Requires

 

The Development Requires

by Charalampos Raftopoulos

database redis client oauth2 client-generator

29/04 2016

dev-dev

dev-dev

Redis Client Generator for the League's PHP OAuth 2.0 server

  Sources   Download

MIT

The Requires

 

The Development Requires

by Charalampos Raftopoulos

database redis client oauth2 client-generator

21/03 2016

1.0.0

1.0.0.0

Redis Client Generator for the League's PHP OAuth 2.0 server

  Sources   Download

MIT

The Requires

 

The Development Requires

by Charalampos Raftopoulos

database redis client oauth2 client-generator

21/03 2016

dev-redis-storage

dev-redis-storage

Redis Client Generator for the League's PHP OAuth 2.0 server

  Sources   Download

MIT

The Requires

 

The Development Requires

by Charalampos Raftopoulos

database redis client oauth2 client-generator

17/03 2016

v0.2.0

0.2.0.0

Redis Client Generator for the League's PHP OAuth 2.0 server

  Sources   Download

MIT

The Requires

 

The Development Requires

by Charalampos Raftopoulos

database redis client oauth2 client-generator

17/03 2016

v0.1.0

0.1.0.0

Redis Client Generator for the League's PHP OAuth 2.0 server

  Sources   Download

MIT

The Requires

 

The Development Requires

by Charalampos Raftopoulos

database redis client oauth2 client-generator