authstrategy

package
v0.14.1-alpha Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeAuthenticationStrategyHookFunc

func DecodeAuthenticationStrategyHookFunc() mapstructure.DecodeHookFunc

Types

type APIKey

type APIKey struct {
	In    string `mapstructure:"in"    validate:"required,oneof=cookie header query"`
	Name  string `mapstructure:"name"  validate:"required"`
	Value string `mapstructure:"value" validate:"required"`
}

func (*APIKey) Apply

func (c *APIKey) Apply(_ context.Context, req *http.Request) error

func (*APIKey) Hash

func (c *APIKey) Hash() []byte

type BasicAuth

type BasicAuth struct {
	User     string `mapstructure:"user"     validate:"required"`
	Password string `mapstructure:"password" validate:"required"`
}

func (*BasicAuth) Apply

func (c *BasicAuth) Apply(_ context.Context, req *http.Request) error

func (*BasicAuth) Hash

func (c *BasicAuth) Hash() []byte

type HeaderConfig

type HeaderConfig struct {
	Name   string `mapstructure:"name"   validate:"required"`
	Scheme string `mapstructure:"scheme"`
}

type OAuth2ClientCredentials

type OAuth2ClientCredentials struct {
	clientcredentials.Config `mapstructure:",squash"`

	Header *HeaderConfig `mapstructure:"header"`
}

func (*OAuth2ClientCredentials) Apply

Jump to

Keyboard shortcuts

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