httpbasicauth

package
v0.0.0-...-545993c Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2024 License: GPL-3.0 Imports: 2 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 {
	// contains filtered or unexported fields
}

BasicAuth is a basic implementation of the Authenticator interface. It expects requests to be sent with an Authorization header containing the HTTP Basic Authentication standard.

func New

func New(username, password string) BasicAuth

func (*BasicAuth) CreateMiddleware

func (a *BasicAuth) CreateMiddleware(h http.Handler) http.Handler

Jump to

Keyboard shortcuts

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