authenticators

package
v0.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2022 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnsupportedAuthenticatorType = errors.New("authenticator type unsupported")
)

Functions

This section is empty.

Types

type Authenticator

type Authenticator interface {
	Execute(heimdall.Context) (*subject.Subject, error)
	WithConfig(config map[string]any) (Authenticator, error)
}

func CreateAuthenticatorPrototype

func CreateAuthenticatorPrototype(
	id string,
	typ config.PipelineObjectType,
	config map[string]any,
) (Authenticator, error)

type AuthenticatorTypeFactory

type AuthenticatorTypeFactory func(
	id string,
	typ config.PipelineObjectType,
	config map[string]any,
) (bool, Authenticator, error)

type Session

type Session struct {
	SubjectIDFrom         string `mapstructure:"subject_id_from"`
	SubjectAttributesFrom string `mapstructure:"subject_attributes_from"`
}

func (*Session) CreateSubject

func (s *Session) CreateSubject(rawData []byte) (*subject.Subject, error)

func (*Session) Validate

func (s *Session) Validate() error

type SubjectFactory

type SubjectFactory interface {
	CreateSubject(rawData []byte) (*subject.Subject, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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