marcoazn89/oauth2-password-grant

There is no license information available for the latest version (v1.0.8) of this package.

v1.0.8 2017-11-28 18:54 UTC

README

composer require marcoazn89/oauth2-password-grant:^1.0

Generate your keys

openssl genrsa -out oauth-key.pem 1024
openssl rsa -in oauth-key.pem -pubout > oauth-key.pub

OAuth2 configuration

'auth' => [
    'private-key' => 'file://' . __DIR__ .'/../oauth-key.pem',
    'public-key' => 'file://' . __DIR__ .'/../oauth-key.pub',
    'expiration' => 604800
],