validations

package
v0.0.0-...-8f455e8 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateToken

func ValidateToken(rawToken []byte, opt Options) []error

Types

type ListFlag

type ListFlag []string

func (*ListFlag) Set

func (l *ListFlag) Set(value string) error

func (*ListFlag) String

func (l *ListFlag) String() string

type Options

type Options struct {
	AllowUnsignedTokens bool
	AllowedSignAlgs     ListFlag
	Secret              string
	Issuer              string
	Subject             string
	PermittedFor        string
	IssuedBefore        string
	TimeIssuedBefore    time.Time
	ExpiresAt           string
	TimeExpiresAt       time.Time
}

Jump to

Keyboard shortcuts

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