OAuth2 module for Infuse Framework
Currently only these OAuth2 grant types are supported:
- Password (User Credentials)
The response type generated by the POST /token route is a JWT encoded access token.
- 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.
This project uses the awesome oauth2-server-php library by Brent Shaffer.



