middleware

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Authorize

func Authorize(next string, userStore auth.UserStore, denied string, ttl int) http.Handler

func Bunt

func Bunt(next string, userStore auth.UserStore, denied string) http.Handler

func Defend

func Defend(next http.Handler, userStore auth.UserStore, denied string) http.Handler

func Fortify

func Fortify(next http.Handler) http.Handler

func Protected

func Protected(next http.Handler, method string, userStore auth.UserStore, login string) http.Handler

func Provision

func Provision(userStore auth.UserStore, ttl int) http.Handler

func Throttle

func Throttle(next http.Handler, limiter rateLimiter.RateLimiter) http.Handler

func Validate

func Validate(next http.Handler, userStore auth.UserStore, scopes map[string]string) http.Handler

Types

type TokenPayload

type TokenPayload struct {
	AccessToken string `json:"access_token"`
	TokenType   string `json:"token_type"`
	ExpiresIn   int    `json:"expires_in"`
}

Jump to

Keyboard shortcuts

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