authorizers

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: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AuthorizerAllow  = "allow"
	AuthorizerDeny   = "deny"
	AuthorizerLocal  = "local"
	AuthorizerCEL    = "cel"
	AuthorizerRemote = "remote"
)

Variables

View Source
var (
	ErrUnsupportedAuthorizerType = errors.New("authorizer type unsupported")
)

Functions

This section is empty.

Types

type Authorizer

type Authorizer interface {
	ID() string
	Execute(ctx heimdall.Context, sub *subject.Subject) error
	WithConfig(config map[string]any) (Authorizer, error)
	ContinueOnError() bool
}

func CreatePrototype

func CreatePrototype(id string, typ string, config map[string]any) (Authorizer, error)

type AuthorizerTypeFactory

type AuthorizerTypeFactory func(id string, typ string, config map[string]any) (bool, Authorizer, error)

type Expression

type Expression struct {
	Value   string `mapstructure:"expression" validate:"required"`
	Message string `mapstructure:"message"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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