authfactory

package
v1.4.6 Latest Latest
Warning

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

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

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