trust

package
v0.17.3 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OIDCMapping

type OIDCMapping struct {
	IssuerURL  string
	Blocked    bool
	JWKSURI    string
	Audiences  []string
	Properties map[string]string

	// ClientID is a client_id property used for authentication.
	// It is an optional value for the trust config. If the trust's client id is not specified,
	// the application-global client id is used.
	ClientID string
}

func (*OIDCMapping) GetIntrospectParameters

func (p *OIDCMapping) GetIntrospectParameters(keys []string) map[string]string

type OIDCMappingRepository

type OIDCMappingRepository interface {
	Get(ctx context.Context, tenantID string) (OIDCMapping, error)
	Create(ctx context.Context, tenantID string, mapping OIDCMapping) error
	Delete(ctx context.Context, tenantID string) error
	Update(ctx context.Context, tenantID string, mapping OIDCMapping) error
}

OIDCMappingRepository allows to read OIDC mapping data for a tenant stored in the context.

type Service

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

func NewService

func NewService(repo OIDCMappingRepository) *Service

func (*Service) ApplyMapping

func (s *Service) ApplyMapping(ctx context.Context, tenantID string, mapping OIDCMapping) error

func (*Service) BlockMapping

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

BlockMapping sets the Blocked flag to true for the OIDC mapping associated with the given tenantID. If the mapping is already blocked, it does nothing. Returns an error if the mapping cannot be retrieved or updated.

func (*Service) RemoveMapping

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

func (*Service) UnblockMapping

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

UnblockMapping sets the Blocked flag to false for the OIDC mapping associated with the given tenantID. If the mapping is not blocked, it does nothing. Returns an error if the mapping cannot be retrieved or updated.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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