auth

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Claims

type Claims struct {
	Username string  `json:"username,omitempty"`
	Scopes   []Scope `json:"scopes,omitempty"`
	jwt.StandardClaims
}

type Scope

type Scope struct {
	URI     string `json:"uri,omitempty"`
	Method  string `json:"method,omitempty"`
	Exclude bool   `json:"exclude,omitempty"`
}

type Token

type Token struct {
	Claims   *Claims
	TokenStr string
	JwtToken *jwt.Token
}

func ParseToken

func ParseToken(tokenStr, signature string) (tokCtx *Token, err error)

Jump to

Keyboard shortcuts

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