middleware

package
v0.0.0-...-335f921 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const UserClaimsCtxKey userClaimsKeyType = 101

Variables

View Source
var (
	ErrEmptyToken = errors.New("Authorization header is empty")
)

Functions

func Authentication

func Authentication(requiredPermissions ...string) func(http.Handler) http.Handler

func Authorization

func Authorization(publicKey string) func(h http.Handler) http.Handler

Types

This section is empty.

Jump to

Keyboard shortcuts

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