middleware

package
v0.0.0-...-c67c63b Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: CC0-1.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthClient

func AuthClient() gin.HandlerFunc

func AuthRequired

func AuthRequired() gin.HandlerFunc

Types

type CustomClaims

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

CustomClaims contains custom data we want from the token.

func (CustomClaims) Validate

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

Validate does nothing for this example, but we need it to satisfy validator.CustomClaims interface.

Jump to

Keyboard shortcuts

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