auth

package
v0.0.0-...-66ab54c Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureValidToken

func EnsureValidToken() func(next http.Handler) http.Handler

EnsureValidToken is a middleware that will check the validity of our JWT.

Types

type CustomClaims

type CustomClaims struct {
	Scope string `json:"scope"`
}

func (CustomClaims) HasScope

func (c CustomClaims) HasScope(expectedScope string) bool

func (CustomClaims) Validate

func (c CustomClaims) Validate(ctx context.Context) error

Validate implements validator.CustomClaims

Jump to

Keyboard shortcuts

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