identityprovider

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 License: Apache-2.0 Imports: 14 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// TrustDomain is the server trust domain.
	TrustDomain spiffeid.TrustDomain
}

type Deps

type Deps struct {
	// DataStore is used to retrieve the latest bundle. It MUST be set.
	DataStore datastore.DataStore

	// X509IdentityFetcher is used to fetch the X509 identity. It MUST be set.
	X509IdentityFetcher X509IdentityFetcher
}

type IdentityProvider

type IdentityProvider struct {
	// contains filtered or unexported fields
}

func New

func New(config Config) *IdentityProvider

func (*IdentityProvider) SetDeps

func (s *IdentityProvider) SetDeps(deps Deps) error

func (*IdentityProvider) V1

type X509Identity

type X509Identity struct {
	CertChain  []*x509.Certificate
	PrivateKey crypto.PrivateKey
}

type X509IdentityFetcher

type X509IdentityFetcher interface {
	FetchX509Identity(context.Context) (*X509Identity, error)
}

type X509IdentityFetcherFunc

type X509IdentityFetcherFunc func(context.Context) (*X509Identity, error)

func (X509IdentityFetcherFunc) FetchX509Identity

func (fn X509IdentityFetcherFunc) FetchX509Identity(ctx context.Context) (*X509Identity, error)

Jump to

Keyboard shortcuts

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