jwt

package
v0.2.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 27, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetJwtKey

func GetJwtKey() string

func JwtKeyFunc

func JwtKeyFunc(token *jwt.Token) (interface{}, error)

Types

type ArithmeticCustomClaims

type ArithmeticCustomClaims struct {
	UserId     int64    `json:"userId"`
	Name       string   `json:"name"`
	Namespaces []string `json:"namespaces"`
	Groups     []int64  `json:"groups"`
	IsAdmin    bool     `json:"isAdmin"`
	RoleIds    []int64  `json:"role_ids"`
	jwt.StandardClaims
}

ArithmeticCustomClaims 自定义声明

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL