更新目录结构
This commit is contained in:
@@ -1,45 +1,18 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | SentCMS [ WE CAN DO IT JUST THINK IT ]
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2013 http://www.tensent.cn All rights reserved.
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: molong <molong@tensent.cn> <http://www.tensent.cn>
|
||||
// +----------------------------------------------------------------------
|
||||
use app\model\auth\Users;
|
||||
/**
|
||||
* @title jwt配置
|
||||
* @author Leruge
|
||||
* @email leruge@163.com
|
||||
*/
|
||||
|
||||
return [
|
||||
'stores' => [
|
||||
'api' => [
|
||||
'sso' => [
|
||||
'enable' => false,
|
||||
],
|
||||
'token' => [
|
||||
'unique_id_key' => 'uid',
|
||||
'signer_key' => 'tensent',
|
||||
'not_before' => 0,
|
||||
'expires_at' => 86400,
|
||||
'refresh_ttL' => 72000,
|
||||
'signer' => 'Lcobucci\JWT\Signer\Hmac\Sha256',
|
||||
'type' => 'Header',
|
||||
'relogin_code' => 50001,
|
||||
'refresh_code' => 50002,
|
||||
'iss' => 'client.tensent',
|
||||
'aud' => 'server.tensent',
|
||||
'automatic_renewal' => false,
|
||||
],
|
||||
'user' => [
|
||||
'bind' => true,
|
||||
'class' => Users::class,
|
||||
]
|
||||
]
|
||||
],
|
||||
'manager' => [
|
||||
// 缓存前缀
|
||||
'prefix' => 'jwt',
|
||||
// 黑名单缓存名
|
||||
'blacklist' => 'blacklist',
|
||||
// 白名单缓存名
|
||||
'whitelist' => 'whitelist'
|
||||
]
|
||||
// JWT加密算法
|
||||
'alg' => env('JWT.ALG', 'HS256'),
|
||||
'secret' => env('JWT.SECRET', 'leruge'),
|
||||
// 非对称加密需要配置
|
||||
'public_key' => env('JWT.PUBLIC_KEY'),
|
||||
'private_key' => env('JWT.PRIVATE_KEY'),
|
||||
'password' => env('JWT.PASSWORD'),
|
||||
// JWT有效期
|
||||
'ttl' => env('JWT.TTL', 3600 * 24 * 365),
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user