oidc

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	IssuerURL string
	Blocked   bool
	JWKSURIs  []string
	Audiences []string
}

type ProviderRepository

type ProviderRepository interface {
	GetForTenant(ctx context.Context, tenantID string) (Provider, error)
	Get(ctx context.Context, issuerURL string) (Provider, error)
	Create(ctx context.Context, tenantID string, provider Provider) error
	Delete(ctx context.Context, tenantID string, provider Provider) error
	Update(ctx context.Context, tenantID string, provider Provider) error
}

ProviderRepository allows to read OIDC provider data for a tenant stored in the context.

type Service added in v0.1.0

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

func NewService added in v0.1.0

func NewService(repo ProviderRepository) *Service

func (*Service) ApplyMapping added in v0.1.0

func (s *Service) ApplyMapping(ctx context.Context, tenantID string, provider Provider) error

func (*Service) GetProvider added in v0.1.0

func (s *Service) GetProvider(ctx context.Context, issuer string) (Provider, error)

func (*Service) RemoveMapping added in v0.1.0

func (s *Service) RemoveMapping(ctx context.Context, tenantID string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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