auth

package
v0.0.0-...-df3f4e6 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2023 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package auth provides means for authentication and authorization of user requests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mode

type Mode interface {
	AllowedAccess(req *http.Request) bool
	AddAuthHeader(req *http.Request)
}

Mode is the interface implemented by different authentication schemes.

func BasicAuth

func BasicAuth(usr, pwd string) Mode

BasicAuth returns a simple user+pass authentication-based Mode.

Jump to

Keyboard shortcuts

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