marcoazn89 / oauth2-password-grant
Installs: 26 719
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 0
Requires
- lcobucci/jwt: ^3.1
- marcoazn89/booboo: ^2.0
This package is not auto-updated.
Last update: 2025-05-10 22:41:56 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 ],