basic

package
v0.0.0-...-d5421df Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const AccountKey = "user"

AccountKey is the cookie name for user credential in basic auth.

View Source
const (
	Basic = "Basic"
)
View Source
const Device = "device"

Device is the cookie name for user credential in basic auth.

View Source
const DeviceIDHeader = "X-Device-ID"

DeviceIDHeader holds Device Authentication.

Variables

View Source
var ErrDevicePassVerificationFailed = errors.New("device pass verification failed")
View Source
var ErrNoCredentialsInHeader = errors.New("no basic auth credentials in header")

Functions

func Auth

func Auth(accounts service.Accounts) echo.MiddlewareFunc

Auth returns a Basic HTTP Authorization Handler.

func CredentialsFromAuthorizationHeader

func CredentialsFromAuthorizationHeader(ctx echo.Context) (string, string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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