api-skeletons / oauth2-doctrine-console
Console management of an OAuth2 for Doctrine Server for Laminas
Installs: 8 226
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Open Issues: 0
Requires
- php: ^7.3
- api-skeletons/oauth2-doctrine: ^5.0
- laminas/laminas-mvc-console: ^1.2
This package is auto-updated.
Last update: 2024-11-11 04:06:44 UTC
README
About
This repository provides console routes to manage an OAuth2 for Doctrine server.
Installation
Installation of this module uses composer. For composer documentation, please refer to getcomposer.org.
$ php composer.phar require api-skeletons/oauth2-doctrine-console "*"
Add this module to your application's configuration:
'modules' => array( ... 'ApiSkeletons\OAuth2\Doctrine\Console', ),
Console Routes
-
oauth2:client:create
Create a new client with or without a user. -
oauth2:client:update
Update a client. -
oauth2:client:delete
Delete a client. -
oauth2:client:list
List all clients. -
oauth2:scope:create
Create a scope. -
oauth2:scope:update
Update a scope. -
oauth2:scope:delete
Delete a scope. -
oauth2:scope:list
List all scopes. -
oauth2:public-key:create
Create the public/private key record for the given client. This data is used to sign JWT access tokens. Each client may have only one key pair. -
oauth2:public-key:delete
Remove the key pair public key from a client. -
oauth2:jwt:create
Create a new JWT for a given client. This JWT will be used by an oauth2 connection requesting a grant_type ofurn:ietf:params:oauth:grant-type:jwt-bearer
. Creating the JWT puts the oauth2 connection request's public key in place in the OAuth2 tables. -
oauth2:jwt:delete
Delete a JWT. -
oauth2:jwt:list
List all JWT.
For the connecting side of JWT see http://bshaffer.github.io/oauth2-server-php-docs/grant-types/jwt-bearer/