tokenauthextension

package module
v0.109.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFactory

func NewFactory() extension.Factory

Types

type Config

type Config struct {
	RedisAddress  string        `mapstructure:"redis_address,omitempty"`
	RedisPassword string        `mapstructure:"redis_password,omitempty"`
	CacheTTL      time.Duration `mapstructure:"cache_ttl,omitempty"`
}

func (*Config) Validate

func (cfg *Config) Validate() error

type TokenAuth

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

func (TokenAuth) Authenticate

func (t TokenAuth) Authenticate(ctx context.Context, headers map[string][]string) (context.Context, error)

func (TokenAuth) Shutdown

func (t TokenAuth) Shutdown(ctx context.Context) error

func (TokenAuth) Start

func (t TokenAuth) Start(ctx context.Context, host component.Host) error

Jump to

Keyboard shortcuts

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