package
0.0.45
Repository: https://github.com/infraboard/mcenter.git
Documentation: pkg.go.dev

# README

令牌管理

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

GenRandomCode todo.
优先从认证头中获取, 如果头没有从Cookie中获取.
优先从认证头中获取, 如果头没有从Query String中获取.
No description provided by the author
No description provided by the author
HashID todo.
MakeBearer https://tools.ietf.org/html/rfc6750#section-2.1 b64token = 1*( ALPHA / DIGIT /"-" / "." / "_" / "~" / "+" / "/" ) *"=".
No description provided by the author
No description provided by the author
NewCode todo.
No description provided by the author
NewDefaultCode todo.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewIssueCodeRequest todo.
NewIssueCodeResponse todo.
NewIssueTokenRequest 默认请求.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
查询用户最近一次登陆记录.
No description provided by the author
NewRevolkTokenRequest 撤销Token请求.
No description provided by the author
No description provided by the author
No description provided by the author
NewTokenSet 实例化.
No description provided by the author
No description provided by the author
No description provided by the author
ParseBLOCK_TYPEFromString Parse BLOCK_TYPE from string.
ParseDESCRIBY_BYFromString Parse DESCRIBY_BY from string.
ParseGRANT_TYPEFromString Parse GRANT_TYPE from string.
ParsePLATFORMFromString Parse PLATFORM from string.
ParseTOKEN_TYPEFromString Parse TOKEN_TYPE from string.
No description provided by the author
No description provided by the author

# Constants

token也可以放到Cookie中, 只是cookie本身并不是太安全, 如果Authorization头没有才考虑从 cookie中获取.
携带Token的Header 名称, 标准格式: Authorization: bearer xxxx-token.
token也可以放到Query参数中, 只是Query参数不安全, 容易导致Token泄露, 一般只用于调试.
No description provided by the author
异常Ip登陆.
异地登陆.
刷新Token过期, 回话中断.
No description provided by the author
No description provided by the author
No description provided by the author
token默认过期时长.
刷新token默认过期时间.
通过access token查看.
通过刷新token查询.
Oauth2.0 Auth Code授权.
客户端授权.
飞书授权.
飞书授权.
转发给其他认证服务做认证.
隐式授权.
LDAP授权.
用户密码授权.
私有令牌, 用于编程使用.
刷新授权.
微信授权.
API 访问授权.
Web 登陆授权.
No description provided by the author
No description provided by the author
No description provided by the author
Bearer Token.
Json Web Token.
基于Mac的Token.
权限校验时, 校验访问者的Token的权限时,除了携带自己的身份凭证之外(AccessToken), 还需要额外携带被校验用户的Token(ValidatedToken).

# Variables

Enum value maps for BLOCK_TYPE.
Enum value maps for BLOCK_TYPE.
No description provided by the author
Enum value maps for DESCRIBY_BY.
Enum value maps for DESCRIBY_BY.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Enum value maps for GRANT_TYPE.
Enum value maps for GRANT_TYPE.
Enum value maps for PLATFORM.
Enum value maps for PLATFORM.
RPC_ServiceDesc is the grpc.ServiceDesc for RPC service.
Enum value maps for TOKEN_TYPE.
Enum value maps for TOKEN_TYPE.

# Structs

No description provided by the author
Code 验证码.
No description provided by the author
IPLocation 客户端地理位置信息.
No description provided by the author
IssueCodeResponse todo.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
UnimplementedRPCServer must be embedded to have forward compatible implementations.
UserAgent todo.
No description provided by the author
VerifyCodeRequest 验证码校验请求.

# Interfaces

RPCClient is the client API for RPC service.
RPCServer is the server API for RPC service.
No description provided by the author
UnsafeRPCServer may be embedded to opt out of forward compatibility for this service.

# Type aliases

冻结类型.
No description provided by the author
授权类型.
No description provided by the author
令牌类型.