Documentation
¶
Index ¶
Constants ¶
View Source
const ( AuthenticatorBasicAuth = "basic_auth" AuthenticatorAnonymous = "anonymous" AuthenticatorOAuth2Introspection = "oauth2_introspection" AuthenticatorJWT = "jwt" AuthenticatorGeneric = "generic" )
Variables ¶
View Source
var ErrSessionLifespanParseError = errors.New("session lifespan parse error")
View Source
var ErrSessionValidity = errors.New("session validity error")
View Source
var (
ErrUnsupportedAuthenticatorType = errors.New("authenticator type unsupported")
)
Functions ¶
This section is empty.
Types ¶
type Authenticator ¶
type Authenticator interface {
ID() string
Execute(ctx heimdall.RequestContext) (*subject.Subject, error)
WithConfig(stepID string, config map[string]any) (Authenticator, error)
IsInsecure() bool
}
func CreatePrototype ¶
type SessionLifespan ¶
type SessionLifespan struct {
// contains filtered or unexported fields
}
func (*SessionLifespan) Assert ¶
func (s *SessionLifespan) Assert() error
type SessionLifespanConfig ¶
type SessionLifespanConfig struct {
ActiveField string `mapstructure:"active"`
IssuedAtField string `mapstructure:"issued_at"`
NotBeforeField string `mapstructure:"not_before"`
NotAfterField string `mapstructure:"not_after"`
TimeFormat string `mapstructure:"time_format"`
ValidityLeeway time.Duration `mapstructure:"validity_leeway"`
}
func (*SessionLifespanConfig) CreateSessionLifespan ¶
func (s *SessionLifespanConfig) CreateSessionLifespan(rawData []byte) (*SessionLifespan, error)
type SubjectFactory ¶
type SubjectInfo ¶
type SubjectInfo struct {
IDFrom string `mapstructure:"id" validate:"required"`
AttributesFrom string `mapstructure:"attributes"`
}
func (*SubjectInfo) CreateSubject ¶
func (s *SubjectInfo) CreateSubject(rawData []byte) (*subject.Subject, error)
Source Files
¶
- anonymous_authenticator.go
- authenticator.go
- authenticator_type_registry.go
- basic_auth_authenticator.go
- config_decoder.go
- constants.go
- default_allowed_algorithms.go
- generic_authenticator.go
- jwt_authenticator.go
- oauth2_introspection_authenticator.go
- session_lifespan.go
- session_lifespan_config.go
- subject_factory.go
- subject_info.go
- supported_algorithms.go
- unauthorized_authenticator.go
Click to show internal directories.
Click to hide internal directories.