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

This package is not auto-updated.

Last update: 2024-04-13 16:51:10 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
],