oidcmock

package
v0.9.9 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository struct {
	Providers         map[string]oidc.Provider
	ProvidersToTenant map[string]oidc.Provider
	// contains filtered or unexported fields
}

func NewInMemRepository

func NewInMemRepository(getErr, getForTenantErr, createErr, deleteErr, updateErr error) *Repository

func (*Repository) Add added in v0.1.0

func (r *Repository) Add(tenantID string, provider oidc.Provider)

func (*Repository) Create

func (r *Repository) Create(ctx context.Context, tenantID string, provider oidc.Provider) error

func (*Repository) Delete

func (r *Repository) Delete(ctx context.Context, tenantID string, provider oidc.Provider) error

func (*Repository) Get added in v0.1.0

func (r *Repository) Get(ctx context.Context, issuerURL string) (oidc.Provider, error)

func (*Repository) GetForTenant

func (r *Repository) GetForTenant(ctx context.Context, tenantID string) (oidc.Provider, error)

func (*Repository) Update

func (r *Repository) Update(ctx context.Context, tenantID string, provider oidc.Provider) error

Jump to

Keyboard shortcuts

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