marcoazn89/oauth2-password-grant

本包的最新版本(v1.0.8)没有可用的许可信息。

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

This package is not auto-updated.

Last update: 2024-09-28 19:25:50 UTC


README

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

生成你的密钥

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

OAuth2配置

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