Skip to content
This repository has been archived by the owner on Mar 9, 2020. It is now read-only.

Commit

Permalink
Merge pull request #38 from TomHAnderson/hotfix/remove-console
Browse files Browse the repository at this point in the history
Removed console routes
  • Loading branch information
TomHAnderson committed Jun 9, 2015
2 parents 63cbf71 + 410b5dd commit 8dfcfc0
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 187 deletions.
15 changes: 1 addition & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,24 +94,11 @@ An example to match ZfcUser `auth_identity_fields` configuration:
'auth_identity_fields' => array('username', 'email'), // defaults to array('username')
```


Command Line Tools
------------------

To make JWT easier to test command line tools are included.

* `oauth2:jwt:create` Create a new JWT for a given client. This JWT will be used by an oauth2 connection requesting a grant_type of `urn: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: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.

For the connecting side [zf-oauth2-client](https://github.com/TomHAnderson/zf-oauth2-client) provides a command line tool to generate a JWT reqeust. See also http://bshaffer.github.io/oauth2-server-php-docs/grant-types/jwt-bearer/


Extensions
----------

This is a list of other modules which extend the functionality this repository provides.

* [zf-oauth2-doctrine-mutabletablenames](https://github.com/basz/zf-oauth2-doctrine-mutatetablenames) - If you do not want to use the default table names provided with the default entities this module lets you customize them.


* [zf-oauth2-doctrine-console](https://github.com/StukiOrg/zf-oauth2-doctrine-console) - Console management of an Apigility Doctrine OAuth2 server
32 changes: 0 additions & 32 deletions config/module.config.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,36 +10,4 @@
'ZF\OAuth2\Doctrine\Factory\DoctrineAdapterFactory',
),
),

'controllers' => array(
'invokables' => array(
'ZF\OAuth2\Doctrine\Controller\Jwt' => 'ZF\OAuth2\Doctrine\Controller\JwtController',
'ZF\OAuth2\Doctrine\Controller\PublicKey' => 'ZF\OAuth2\Doctrine\Controller\PublicKeyController',
),
),

'console' => array(
'router' => array(
'routes' => array(
'create-jwt' => array(
'options' => array(
'route' => 'oauth2:jwt:create',
'defaults' => array(
'controller' => 'ZF\OAuth2\Doctrine\Controller\Jwt',
'action' => 'create'
),
),
),
'create-public-key' => array(
'options' => array(
'route' => 'oauth2:public-key:create',
'defaults' => array(
'controller' => 'ZF\OAuth2\Doctrine\Controller\PublicKey',
'action' => 'create'
),
),
),
),
),
),
);
61 changes: 0 additions & 61 deletions src/Controller/JwtController.php

This file was deleted.

80 changes: 0 additions & 80 deletions src/Controller/PublicKeyController.php

This file was deleted.

0 comments on commit 8dfcfc0

Please sign in to comment.