auth

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2023 License: MIT Imports: 6 Imported by: 93

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecorateWithBasicAuth

func DecorateWithBasicAuth(next http.HandlerFunc, credentials *BasicAuthCredentials) http.HandlerFunc

DecorateWithBasicAuth enforces basic auth as a middleware with given credentials

Types

type BasicAuthCredentials

type BasicAuthCredentials struct {
	User     string
	Password string
}

BasicAuthCredentials for credentials

type ReadBasicAuth

type ReadBasicAuth interface {
	Read() (*BasicAuthCredentials, error)
}

type ReadBasicAuthFromDisk

type ReadBasicAuthFromDisk struct {
	SecretMountPath string

	UserFilename string

	PasswordFilename string
}

func (*ReadBasicAuthFromDisk) Read

Jump to

Keyboard shortcuts

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