定制 vinelab/oauth-clients-generator-redis 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

alt tag

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 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:

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

GitHub 信息

  • Stars: 1
  • Watchers: 4
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-03-17

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固