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 AuthWithShare ¶
AuthWithShare returns a Basic HTTP Authorization Handler. It takes as argument a map[string]string where the key is the username and the value is the password.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.