authhttpmiddleware

package
v0.6.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Configs = configset.Set[Config]{
	Default: &Config{Required: true},
	Dev:     &Config{},
}

Functions

This section is empty.

Types

type AuthMiddlewareDecorator

type AuthMiddlewareDecorator func(http.Handler) http.Handler

func New

func New(deps Deps) AuthMiddlewareDecorator

type Config

type Config struct {
	Required bool `koanf:"required"`
}

type Deps

type Deps struct {
	fx.In

	Cfg      *Config
	Sessions authsessions.Store `optional:"true"`
	Tokens   authtokens.Tokens  `optional:"true"`
}

Jump to

Keyboard shortcuts

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