middleware

package
v0.0.0-...-e400c07 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidID = errors.New("ID is not in its proper form")
)

Set of error variables for handling user group errors.

Functions

func Authenticate

func Authenticate(a *auth.Auth) web.Middleware

Authenticate validates a JWT from the `Authorization` header.

func Authorize

func Authorize(a *auth.Auth, rule string) web.Middleware

Authorize validates that an authenticated user has at least one role from a specified list. This method constructs the actual function that is used.

Types

This section is empty.

Jump to

Keyboard shortcuts

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