jwt

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTestJWTWithClaims

func NewTestJWTWithClaims(claims Claims) (string, error)

Types

type Claims

type Claims struct {
	jwt.Claims
	Groups []string `json:"groups"`
	Email  string   `json:"email"`
}

Claims is a wrapper of jwt.Claims with added attributes

func TokenClaims

func TokenClaims(rawToken string) (*Claims, error)

TokenClaims returns Claims from a jwt token in raw base64 format

Jump to

Keyboard shortcuts

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