package
Version:
v0.0.0-...-654a53c
Opens a new window with list of versions in this module.
Published: Jan 21, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func ValidatingJWTAccessToken(tokenString string) (jwt.MapClaims, error)
解析JWT令牌字符串,验证有效性,如令牌有效,提取其中存放的信息以jwt.MapClaims的形式返回
type JWT struct {
AccessToken string `json:"access_token"`
RefreshToken string `json:"refresh_token"`
Authorities []string `json:"authorities"`
Expires int64 `json:"expires_in"`
Scope string `json:"scope"`
TokenType string `json:"token_type"`
Username string `json:"username"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.