selfhosted

package
v0.0.0-...-f1775f8 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(ctx context.Context, factory OIDCIdPFactory, issuerMeta issuer.OIDCIssuerMeta) error

func Execute

func Execute(ctx context.Context, idpComponentsFactory OIDCIdPFactory, issuerMeta issuer.OIDCIssuerMeta, forceUpdate bool) error

Types

type JWK

type JWK struct {
	Keys []jose.JSONWebKey `json:"keys"`
}

func NewJWK

func NewJWK(pub []byte) (*JWK, error)

type KeyPair

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

func CreateKeyPair

func CreateKeyPair() (*KeyPair, error)

func (*KeyPair) PrivateKey

func (k *KeyPair) PrivateKey() []byte

func (*KeyPair) PublicKey

func (k *KeyPair) PublicKey() []byte

type OIDCIdP

type OIDCIdP interface {
	Create(ctx context.Context) error
	IsUpdate() (bool, error)
	Update(ctx context.Context) error
	Delete(ctx context.Context) error
}

type OIDCIdPDiscovery

type OIDCIdPDiscovery interface {
	CreateStorage(ctx context.Context) error
	Upload(ctx context.Context, o OIDCIdPDiscoveryContents, forceUpdate bool) error
	Delete(ctx context.Context, o OIDCIdPDiscoveryContents) error
}

type OIDCIdPDiscoveryContents

type OIDCIdPDiscoveryContents interface {
	Discovery() ([]byte, error)
	JWK() ([]byte, error)
	JWKsFileName() string
}

type OIDCIdPFactory

type OIDCIdPFactory interface {
	IdP(i issuer.OIDCIssuerMeta) (OIDCIdP, error)
	IdPDiscovery() OIDCIdPDiscovery
	IdPDiscoveryContents(i issuer.OIDCIssuerMeta) OIDCIdPDiscoveryContents
}

type Webhook

type Webhook interface {
	Resources() []client.Object
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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