authenticator

package
v0.0.0-...-0640eb1 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

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 FetchJWK

func FetchJWK(ctx context.Context, urlstring string, options ...jwk.FetchOption) (jwk.Set, error)

FetchJWK fetches a JWK resource specified by a URL

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"`
	TenantAttribute   Attribute `json:"tenant"`
}

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"`
}

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 TrustedIssuer

type TrustedIssuer struct {
	Protocol    string `json:"protocol"`
	DomainURL   string `json:"domain_url"`
	ScopePrefix string `json:"scope_prefix"`
}

TrustedIssuer missing godoc

Jump to

Keyboard shortcuts

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