Documentation ¶
Index ¶
Constants ¶
View Source
const DEFAULT_JWT_PUBLIC_KEY_FILE = "/keys/id_ecdsa.pub"
View Source
const INVALID_USERNAME = ""
View Source
const JWT_PUBLIC_KEY_FILE_ENV_VAR = "JWT_PUBLIC_KEY_FILE"
Variables ¶
This section is empty.
Functions ¶
func GetUsernameFromToken ¶
func ParseToken ¶
Types ¶
type Fs3JwtClaims ¶
type Fs3JwtClaims struct { Username string `json:"user"` jwt.RegisteredClaims }
func GetClaims ¶
func GetClaims(token *jwt.Token) (*Fs3JwtClaims, error)
Click to show internal directories.
Click to hide internal directories.