legacy

package
v0.0.0-...-5559093 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2021 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package legacy provides an authentication function that will validate against a list of user:pass or user:bcrypt details

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthCheckFunc

func AuthCheckFunc(
	logger *zap.Logger,
	legacyAuthItems map[string]AuthItem,
	authProvider httpauth.AuthProvider,
) httpauth.AuthProvider

AuthCheckFunc returns a authentication check function for use with `httpauth.BasicAuth()“

Types

type AuthItem

type AuthItem struct {
	Username string
	Password string
}

AuthItem is a single authentication item for use with legacy auth.

Jump to

Keyboard shortcuts

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