auth

package
v0.0.0-...-e21216f Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Authenticate

func Authenticate(rw http.ResponseWriter, username, password, basepath string)

func IsAuthenticated

func IsAuthenticated(req *http.Request, username, password string) bool

func Logout

func Logout(rw http.ResponseWriter, basepath string)

func StringsEqual

func StringsEqual(p1, p2 string) bool

Types

type Middleware

type Middleware struct {
	Username string
	Password string
	BasePath string
	Public   string
}

func (*Middleware) Handler

func (m *Middleware) Handler(c *router.Context)

Jump to

Keyboard shortcuts

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