middleware

package
v0.0.0-...-45e1d17 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthBasicConfig

type AuthBasicConfig struct {
	User     string
	Password string
	Skipper  Skipper
}

AuthBasicConfig is the configuration for the AuthBasic middleware.

type AuthOIDCConfig

type AuthOIDCConfig struct {
	CookieName  string
	Issuer      string
	Audience    string
	SecretKey   string
	RedirectURL string
	Skipper     Skipper
}

AuthOIDCConfig is the configuration for the Auth middleware.

type Middleware

type Middleware func(next http.Handler) http.Handler

func AuthBasicWithConfig

func AuthBasicWithConfig(conf AuthBasicConfig) Middleware

AuthBasicWithConfig returns a middleware that authenticates requests.

func AuthOIDCWithConfig

func AuthOIDCWithConfig(conf AuthOIDCConfig) Middleware

AuthOIDCWithConfig returns a middleware that authenticates requests.

type Skipper

type Skipper func(r *http.Request) bool

Jump to

Keyboard shortcuts

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