Documentation
¶
Overview ¶
Package auth 登录凭证的验证
Index ¶
- Constants
- func BasicToken(token string) string
- func BearerToken(token string) string
- func BuildToken(prefix, token string) string
- func GetBasicToken(ctx *web.Context, header string) string
- func GetBearerToken(ctx *web.Context, header string) string
- func GetToken(ctx *web.Context, prefix, header string) string
- type Auth
Constants ¶
View Source
const ( Bearer = "bearer " // bearer 验证类型的前缀,属部带空格。 Basic = "basic " // basic 验证类型的前缀,属部带空格。 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
Directories
¶
Path | Synopsis |
---|---|
Package basic 实现 Basic 校验
[Basic]: https://tools.ietf.org/html/rfc7617
|
Package basic 实现 Basic 校验 [Basic]: https://tools.ietf.org/html/rfc7617 |
Package jwt JSON Web Tokens 验证
|
Package jwt JSON Web Tokens 验证 |
Package session SESSION 管理
|
Package session SESSION 管理 |
Package temporary 用于创建一个一次性的令牌
|
Package temporary 用于创建一个一次性的令牌 |
Package token 传统令牌的验证方式
|
Package token 传统令牌的验证方式 |
Click to show internal directories.
Click to hide internal directories.