think-jwt icon indicating copy to clipboard operation
think-jwt copied to clipboard

无法关闭单点登录。

Open jackkam85 opened this issue 3 years ago • 1 comments

无法关闭单点登录。 'sso'=>[ 'enable'=>false ], 无效果。

` return [ 'default' => 'admin', 'apps' => [ 'admin' => [ 'sso'=>[ 'enable'=>false ], 'token' => [

            'ssoCacheKey'  => 'jwt-auth-user',
            'ssoKey'       => 'uid',
            'uniqidKey'        => 'uid',
            'signerKey'        => 'RvAjzUhtJs',
            'notBefore'        => 0,
            'expiresAt'        => 136000,
            'refreshTTL'       => 172000,
            'signer'           => 'Lcobucci\JWT\Signer\Hmac\Sha256',
            'type'             => 'Header',
            'refresh'          => 50001,
            'relogin'          => 50002,
            'iss'              => 'client.tant',
            'aud'              => 'server.tant',
            'automaticRenewal' => false,
        ],
        'user' => [
            'bind'   => true,
            'model'  => 'app\\common\\model\\User',
        ],
    ],
   
    'wechat' => [
        'token' => [
            'uniqidKey'        => 'uid',
            'signerKey'        => 'AYIB8IVcwSE',
            'notBefore'        => 0,
            'expiresAt'        => 36000,
            'refreshTTL'       => 72000,
            'signer'           => 'Lcobucci\JWT\Signer\Hmac\Sha256',
            'type'             => 'Header',
            'refresh'          => 50001,
            'relogin'          => 50002,
            'iss'              => 'client.tant',
            'aud'              => 'server.tant',
            'automaticRenewal' => false,
        ],
        'user' => [
            'bind'   => true,
            'model'  => 'app\\common\\model\\Member',
        ],
    ],
],
'manager' => [
    // 缓存前缀
    'prefix' => 'jwt',
    // 黑名单缓存名
    'blacklist' => 'blacklist',
    // 白名单缓存名
    'whitelist' => 'whitelist',
],

]; `

jackkam85 avatar Jun 23 '21 00:06 jackkam85

提供下当前版本

edenleung avatar Jun 29 '21 00:06 edenleung