2017 © Pedro PelĂĄez
 

library lumen-oauth2-dynamodb

DynamoDB OAuth2 module for the Lumen PHP framework.

image

nordsoftware/lumen-oauth2-dynamodb

DynamoDB OAuth2 module for the Lumen PHP framework.

  • Friday, March 4, 2016
  • by crisu83
  • Repository
  • 15 Watchers
  • 5 Stars
  • 34 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

lumen-oauth2-dynamodb

DynamoDB support for the lumen-oauth2 module., (*1)

Getting started

Configure your DynamoDB server, either with the local standalone, or the one in AWS. If locally, make sure the DynamoDB server is running., (*2)

Edit your Kernel.php file, and add the following commands to the commands list:, (*3)

protected $commands = [
    ...
    'Nord\Lumen\OAuth2\DynamoDB\Console\Commands\CreateTablesCommand',
    'Nord\Lumen\OAuth2\DynamoDB\Console\Commands\CreateClientCommand',
];

This will introduce two new commands to artisan:, (*4)

php artisan oauth2:dynamodb:create
php artisan oauth2:dynamodb:client

The first command will create the necessary OAuth2 tables in your DynamoDB. The latter will create a record in the oauth_clients table with information from your .env file., (*5)

You will need the following environment variables defined:, (*6)

OAUTH2_CLIENT_ID=<CLIENT_ID>
OAUTH2_CLIENT_SECRET=<CLIENT_SECRET>
OAUTH2_CLIENT_NAME=<CLIENT_NAME>

You may set the ProvisionedThroughput.ReadCapacityUnits/WriteCapacityUnits for the tables with the following environment variables:, (*7)

OAUTH2_CLIENTS_DYNAMODB_READ_CAPACITY_UNITS=10
OAUTH2_CLIENTS_DYNAMODB_WRITE_CAPACITY_UNITS=20
OAUTH2_SESSIONS_DYNAMODB_READ_CAPACITY_UNITS=10
OAUTH2_SESSIONS_DYNAMODB_WRITE_CAPACITY_UNITS=20
OAUTH2_ACCESS_TOKENS_DYNAMODB_READ_CAPACITY_UNITS=10
OAUTH2_ACCESS_TOKENS_DYNAMODB_WRITE_CAPACITY_UNITS=20
OAUTH2_REFRESH_TOKENS_DYNAMODB_READ_CAPACITY_UNITS=10
OAUTH2_REFRESH_TOKENS_DYNAMODB_WRITE_CAPACITY_UNITS=20

The default values are 10 for read capacity and 20 for write capacity. They're quite high values, so you might want to modify the values to better serve your usage of the oauth_* tables., (*8)

License

See LICENSE., (*9)

The Versions

04/03 2016

dev-master

9999999-dev

DynamoDB OAuth2 module for the Lumen PHP framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Kenneth Söderlund

laravel lumen oauth2

04/03 2016

dev-develop

dev-develop

DynamoDB OAuth2 module for the Lumen PHP framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Kenneth Söderlund

laravel lumen oauth2

04/03 2016

0.2.1

0.2.1.0

DynamoDB OAuth2 module for the Lumen PHP framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Kenneth Söderlund

laravel lumen oauth2

01/03 2016

0.2.0

0.2.0.0

DynamoDB OAuth2 module for the Lumen PHP framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Kenneth Söderlund

laravel lumen oauth2

19/02 2016

0.1.1

0.1.1.0

DynamoDB OAuth2 module for the Lumen PHP framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Kenneth Söderlund

laravel lumen oauth2

18/02 2016

0.1.0

0.1.0.0

DynamoDB OAuth2 module for the Lumen PHP framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Kenneth Söderlund

laravel lumen oauth2