authenticator

package
v0.0.0-...-a423d60 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

View Source
const CoordinatesKey = "authenticator_coordinates"

CoordinatesKey missing godoc

View Source
const HeaderName = "X-Authenticator-Name"

HeaderName missing godoc

Variables

This section is empty.

Functions

func Validate

func Validate(tenantAttributes []TenantAttribute) error

Validate validates the tenant attributes

Types

type Attribute

type Attribute struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

Attribute represents a single attribute associated with an authenticator

func (*Attribute) Validate

func (a *Attribute) Validate() error

Validate validates the attribute

type Attributes

type Attributes struct {
	UniqueAttribute   Attribute         `json:"uniqueAttribute"`
	IdentityAttribute Attribute         `json:"identity"`
	TenantsAttribute  []TenantAttribute `json:"tenants"`
	ClientID          Attribute         `json:"clientid"`
}

Attributes holds all attribute properties and values related to an authenticator

func (*Attributes) Validate

func (a *Attributes) Validate() error

Validate validates all attributes

type Config

type Config struct {
	Name             string          `json:"name"`
	TrustedIssuers   []TrustedIssuer `json:"trusted_issuers"`
	Attributes       Attributes      `json:"attributes"`
	CheckSuffix      bool            `json:"check_suffix"`
	ClientIDSuffixes []string        `json:"client_id_suffix"`
}

Config holds all configuration related to an additional authenticator provided to the Director

func InitFromEnv

func InitFromEnv(envPrefix string) ([]Config, error)

InitFromEnv loads authenticator configurations from environment if any exist

type Coordinates

type Coordinates struct {
	Name  string `json:"name"`
	Index int    `json:"index"`
}

Coordinates missing godoc

type JWTKeyIterator

type JWTKeyIterator struct {
	AlgorithmCriteria func(string) bool
	IDCriteria        func(string) bool
	ResultingKey      interface{}
	AllKeys           []interface{}
}

JWTKeyIterator missing godoc

func (*JWTKeyIterator) Visit

func (keyIterator *JWTKeyIterator) Visit(_ int, value interface{}) error

Visit missing godoc

type TenantAttribute

type TenantAttribute struct {
	Key      string `json:"key"`
	Priority int    `json:"priority"`
}

TenantAttribute represents a single tenant attribute associated with an authenticator

type TrustedIssuer

type TrustedIssuer struct {
	Protocol      string   `json:"protocol"`
	DomainURL     string   `json:"domain_url"`
	ScopePrefixes []string `json:"scope_prefixes"`
	Region        string   `json:"region"`
}

TrustedIssuer missing godoc

Jump to

Keyboard shortcuts

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