vinelab/oauth-clients-generator-redis
Composer 安装命令:
composer require vinelab/oauth-clients-generator-redis
包简介
Redis Client Generator for the League's PHP OAuth 2.0 server
README 文档
README
Redis Client Generator to be used with ThePhpLeague's OAuth2 Package
Quick Reference
Installation
Composer
Use the command:
composer require vinelab/oauth-clients-generator-redis
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]
统计信息
- 总下载量: 6
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-03-17