idealistsoft/framework-oauth2

This package is abandoned and no longer maintained. The author suggests using the infuse/oauth2 package instead.

OAuth2 module for Infuse Framework

dev-master 2017-02-11 05:02 UTC

This package is not auto-updated.

Last update: 2022-02-01 12:39:56 UTC


README

Build Status Coverage Status Latest Stable Version Total Downloads HHVM Status

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

  1. Install the package with composer:
composer require infuse/oauth2
  1. Generate the private key with: openssl genrsa -out jwt_privkey.pem 2048

  2. 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.