basicauth

package
v1.77.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicAuth

type BasicAuth struct{}

func NewBasicAuth

func NewBasicAuth() *BasicAuth

func (BasicAuth) Handler

func (BasicAuth) Handler(proxyRoute gobis.ProxyRoute, params interface{}, handler http.Handler) (http.Handler, error)

func (BasicAuth) Schema

func (BasicAuth) Schema() interface{}

type BasicAuthConfig

type BasicAuthConfig struct {
	BasicAuth            BasicAuthOptions `mapstructure:"basic_auth" json:"basic_auth" yaml:"basic_auth"`
	BasicAuthPassthrough bool             `mapstructure:"basic_auth_passthrough" json:"basic_auth_passthrough" yaml:"basic_auth_passthrough"`
}

type BasicAuthOption

type BasicAuthOption struct {
	User     string   `mapstructure:"user" json:"user" yaml:"user"`
	Password string   `mapstructure:"password" json:"password" yaml:"password"`
	Groups   []string `mapstructure:"groups" json:"groups" yaml:"groups"`
	Crypted  bool     `mapstructure:"crypted" json:"crypted" yaml:"crypted"`
}

type BasicAuthOptions

type BasicAuthOptions []BasicAuthOption

func (BasicAuthOptions) Auth

func (b BasicAuthOptions) Auth(user, password string, passthrough bool, req *http.Request) bool

Jump to

Keyboard shortcuts

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