oidctrust

package
v0.18.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TrustModule

type TrustModule struct {
	DBModule string `yaml:"dbModule" default:"database.module.pgxpool" dep:"sessionmanager.Database"`
	// contains filtered or unexported fields
}

TrustModule is a module that implements sessionmanager.Trust interface. It's using a database provided by the [dbModule] module which implements sessionmanager.DBModule.

func (*TrustModule) Apply

func (m *TrustModule) Apply(ctx context.Context, trust *trustv1.Trust) error

Apply implements sessionmanager.Trust.

func (*TrustModule) Block

func (m *TrustModule) Block(ctx context.Context, tenantID string) error

Block implements sessionmanager.Trust.

func (*TrustModule) Get

func (m *TrustModule) Get(ctx context.Context, tenantID string) (*trustv1.Trust, error)

Get implements sessionmanager.Trust.

func (*TrustModule) Module

func (*TrustModule) Provision

func (m *TrustModule) Provision(ctx *sessionmanager.Context) error

func (*TrustModule) Remove

func (m *TrustModule) Remove(ctx context.Context, tenantID string) error

Remove implements sessionmanager.Trust.

func (*TrustModule) Unblock

func (m *TrustModule) Unblock(ctx context.Context, tenantID string) error

Unblock implements sessionmanager.Trust.

type TrustRepository

type TrustRepository interface {
	Get(ctx context.Context, tenantID string) (*trustv1.Trust, error)
	Create(ctx context.Context, trust *trustv1.Trust) error
	Delete(ctx context.Context, tenantID string) error
	Update(ctx context.Context, trust *trustv1.Trust) error
}

TrustRepository allows to read OIDC trust data for a tenant stored in the context.

Directories

Path Synopsis
internal
sql

Jump to

Keyboard shortcuts

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