middleware

package
v0.0.0-...-9154c2c Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthErrorHandler

type AuthErrorHandler = func(w http.ResponseWriter, ctx context.Context, err error)

type AuthMiddleware

type AuthMiddleware struct {
	// contains filtered or unexported fields
}

func NewAuthMiddleware

func NewAuthMiddleware(authenticator authenticator.Authenticator, errorHandler AuthErrorHandler, options ...Option) *AuthMiddleware

func (*AuthMiddleware) Handler

func (middleware *AuthMiddleware) Handler(next http.Handler) http.Handler

type Option

type Option func(*AuthMiddleware)

func WithCustomTokenExtractor

func WithCustomTokenExtractor(f func(*http.Request) string) Option

Jump to

Keyboard shortcuts

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