authfactory

package
v1.6.7 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2026 License: Apache-2.0 Imports: 5 Imported by: 2 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// ConfigName the name of the specific instance of a particular auth plugin
	ConfigName = "name"
	// ConfigType the auth plugin to use for the HTTP server
	ConfigType = "type"
)

Variables

This section is empty.

Functions

func GetPlugin

func GetPlugin(ctx context.Context, pluginType string) (auth.Plugin, error)

func InitConfig

func InitConfig(config config.Section)

Initialize a single config section with known keys Used as part of an HTTP server config section

func InitConfigArray

func InitConfigArray(config config.ArraySection)

Initialize several different config sections with known keys Used in a list of plugins

func RegisterPlugins

func RegisterPlugins(plugins map[string]func() auth.Plugin, conf config.Section)

Allows other code to register additional implementations of Auth plugins that can also be initialized with this factory

Types

This section is empty.

Jump to

Keyboard shortcuts

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