authorizers

package
v0.8.2-alpha Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 24 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 {
	Execute(heimdall.Context, *subject.Subject) error
	WithConfig(config map[string]any) (Authorizer, error)
	ContinueOnError() bool
}

func CreateAuthorizerPrototype

func CreateAuthorizerPrototype(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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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