infuse / oauth2
OAuth2 module for Infuse Framework
dev-master
2017-02-11 05:02 UTC
Requires
- php: >=5.6.0
- bshaffer/oauth2-server-php: dev-develop
Requires (Dev)
- infuse/auth: ~1.2
- infuse/infuse: ~1.3
- robmorgan/phinx: ~0.3
- satooshi/php-coveralls: 0.6.1
This package is auto-updated.
Last update: 2024-10-13 07:45:33 UTC
README
OAuth2 module for Infuse Framework
Grant Types
Currently only these OAuth2 grant types are supported:
- Password (User Credentials)
Response Type
The response type generated by the POST /token
route is a JWT encoded access token.
Installation
- Install the package with composer:
composer require infuse/oauth2
-
Generate the private key with:
openssl genrsa -out jwt_privkey.pem 2048
-
Generate the public key with:
openssl rsa -in jwt_privkey.pem -pubout -out jwt_pubkey.pem
The public and private key should each be stored in the base directory of your app.
Acknowledgements
This project uses the awesome oauth2-server-php library by Brent Shaffer.