basic

package
v0.12.2 Latest Latest
Warning

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

Go to latest
Published: May 21, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicAuthPlugin

type BasicAuthPlugin struct {
	// contains filtered or unexported fields
}

BasicAuthPlugin implements the AuthPlugin interface for Basic HTTP authentication.

func (*BasicAuthPlugin) Authenticate

func (p *BasicAuthPlugin) Authenticate(headers map[string]string, method string, path string, query string) (map[string]any, error)

Authenticate validates the Authorization header for Basic authentication.

func (*BasicAuthPlugin) Init

func (p *BasicAuthPlugin) Init(settings map[string]any) (map[string]any, error)

Init initializes the BasicAuthPlugin. It expects a "userlist" in settings as a map[string]string.

Jump to

Keyboard shortcuts

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