auth

package
v3.0.0-...-28adb68 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	AuthenticatorName = "headers_check"
)

Variables

View Source
var (
	HeadersCheckID = component.MustNewID(AuthenticatorName)
)

Functions

func CreateAuthExtensionFunc

func CreateAuthExtensionFunc(
	_ context.Context,
	setting extension.Settings,
	_ component.Config,
) (extension.Extension, error)

nolint: ireturn

func CreateDefaultConfig

func CreateDefaultConfig() component.Config

nolint: ireturn

func NewFactory

func NewFactory() extension.Factory

nolint: ireturn

Types

type Config

type Config struct {
	AuthenticatorID component.ID `mapstructure:",squash"`
}

type HeadersCheck

type HeadersCheck struct {
	AuthenticatorID component.ID `mapstructure:"authenticator"`
	// contains filtered or unexported fields
}

func (*HeadersCheck) Authenticate

func (a *HeadersCheck) Authenticate(ctx context.Context, headers map[string][]string) (context.Context, error)

func (*HeadersCheck) Shutdown

func (a *HeadersCheck) Shutdown(_ context.Context) error

func (*HeadersCheck) Start

type Option

type Option func(*HeadersCheck)

type ServerConfig

type ServerConfig struct {
	AuthenticatorID string `mapstructure:"authenticator"`
}

Jump to

Keyboard shortcuts

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