Sso
class Sso
单点登录
Traits
AppTrait
Constants
SSO_NONE |
|
SSO_GROUP |
|
SSO_DEVICE_NUM |
|
GROUP_UNLIMITED |
|
GROUP_KICKED |
|
Properties
protected Resp | $error | error | from AppTrait |
protected Resp | $success | success | from AppTrait |
Methods
__construct()
No description
bool
void
validateUser($pamId)
使用户可用
void
banUser(int $pamId)
禁用用户和 token
int
clearExpired()
No description
void
logout(int $id, string $token)
SSO 退出登录
static bool
isEnable()
是否启用 sso 登录
static array|string
kvType(string $key = null, bool $check_exists = false)
No description
array|string
groupDesc($str = false)
返回组说明
string
groupType(string $os)
是否 OS 不设限
Details
in
AppTrait at line 45
bool
setError(string|MessageBag $error)
设置错误
at line 46
__construct()
No description
at line 68
bool
handle(PamAccount $pam, string $device_id, string $device_type, string $token)
No description
at line 167
void
validateUser($pamId)
使用户可用
at line 179
void
banUser(int $pamId)
禁用用户和 token
at line 197
void
banToken(PamToken $pt, bool $delete = true)
根据 Token 禁用并移除 Token
at line 221
int
clearExpired()
No description
at line 241
void
logout(int $id, string $token)
SSO 退出登录
at line 261
static bool
isEnable()
是否启用 sso 登录
at line 272
static array|string
kvType(string $key = null, bool $check_exists = false)
No description
at line 286
array|string
groupDesc($str = false)
返回组说明
at line 304
string
groupType(string $os)
是否 OS 不设限