Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ContextKey ¶
type ContextKey string
type for CTX jwt key
const ContextJWTKey ContextKey = "jwt"
CTX JWT key
type JSONWebToken ¶
type JSONWebToken struct {
Version int `json:"ver"`
ID string `json:"jti"`
Issuer string `json:"iss"`
Audience string `json:"aud"`
IssuedAt int `json:"iat"`
ExpiresAt int `json:"exp"`
ClientID string `json:"cid"`
UserID string `json:"uid"`
Scopes []string `json:"scp"`
Subject string `json:"sub"`
Groups []string `json:"groups"`
IsValid bool `json:"is_valid"`
}
JSONWebToken ...
Click to show internal directories.
Click to hide internal directories.