Download the PHP package vinelab/oauth-clients-generator-redis without Composer
On this page you can find all versions of the php package vinelab/oauth-clients-generator-redis. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package oauth-clients-generator-redis
Redis OAuth2 Client Generator
Redis Client Generator to be used with ThePhpLeague's OAuth2 Package
Quick Reference
- Installation
- Commands
Installation
Composer
Use the command:
otherwise, add:
"vinelab/oauth-clients-generator-redis": "dev-master"
to your composer.json
file and do a composer update
.
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
export PATH="./vendor/bin:$PATH"
to use oauth
straight instead of ./vendor/bin/oauth
use oauth list
for a list of available commands and oauth --help [command]
for more info about each of them.
Commands
oauth
- Options
clients:create
: Create a new clientclients:delete
: Delete a specific clientclients:list
: List all available clientsclients:fetch
: Fetch a specific client--show-secret
: Show a specific client's secret
clients:regenerate-secret
: Re-generate a client's secret
- Options
Create Client
In order to create a new client, use the command:
oauth clients:create {name} {password} {redirect_uri = ''} {grantType = 'client_credentials'}
,
where:
name
=> The name of the application [REQUIRED],
password
=> A password to use when you need to delete a client or re-generate his secret [REQUIRED],
redirect_uri
=> The redirect URI you want to make use of [OPTIONAL],
grantType
=> The grant type you want to use [OPTIONAL]
Delete Client
In order to delete a specific client, use the command:
oauth clients:delete {client_id} {password}
,
where:
client_id
=> The client's id [REQUIRED],
password
=> The password the user used when created the client [REQUIRED]
List Clients
In order to list all available clients, use the command:
oauth clients:list
.
Fetch Client (or client's secret)
In order to fetch a specific client or just fetch a client's secret, use the command:
oauth clients:fetch {client_id}
,
where:
client_id
=> The client's id [REQUIRED],
and in case you want to fetch a specific user's secret, you can use the --show-secret
flag in the command:
eg. oauth clients:fetch {client_id} --show-secret {password}
where:
password
=> The password the user used when created the client [REQUIRED]
Re-generate Client's Secret
In order to re-generate a specific client's secret, use the command:
oauth clients:regenerate-secret {client_id} {password}
,
where:
client_id
=> The client's id [REQUIRED],
password
=> The password the user used when created the client [REQUIRED]
All versions of oauth-clients-generator-redis with dependencies
symfony/console Version 2.7.*
vinelab/oauth-manager-redis Version dev-dev