bauth

package
v0.0.0-...-8986e6e Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2020 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

Service holds authorization middleware data

func New

func New(username, password, realm string) *Service

New instantiates new auth middleware

func (*Service) MWFunc

func (s *Service) MWFunc(h http.Handler) http.Handler

MWFunc implements http middleware for Basic Authentication

During initialization, username and password need to be provided which are compared afterwards in all requests.

Jump to

Keyboard shortcuts

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