claims

package
v0.0.0-...-a423d60 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClaimsValidator

func NewClaimsValidator() *claimsValidator

NewClaimsValidator implements the ClaimsValidator interface

func NewScopesValidator

func NewScopesValidator(requiredScopes []string) *scopeBasedClaimsValidator

NewScopesValidator creates new scopes validator for given scopes.

func NewValidator

func NewValidator(transact persistence.Transactioner, runtimesSvc RuntimeService, runtimeCtxSvc RuntimeCtxService, appTemplateSvc ApplicationTemplateService, applicationSvc ApplicationService, intSystemSvc IntegrationSystemService, subscriptionProviderLabelKey, globalSubaccountIDLabelKey, tokenPrefix string) *validator

NewValidator creates new claims validator

Types

type ApplicationService

type ApplicationService interface {
	ListAll(ctx context.Context) ([]*model.Application, error)
}

ApplicationService is responsible for the service-layer Application operations.

type ApplicationTemplateService

type ApplicationTemplateService interface {
	GetByFilters(ctx context.Context, filter []*labelfilter.LabelFilter) (*model.ApplicationTemplate, error)
}

ApplicationTemplateService is used to interact with application templates.

type IntegrationSystemService

type IntegrationSystemService interface {
	Exists(context.Context, string) (bool, error)
}

IntegrationSystemService is used to check if integration system with a given ID exists.

type RuntimeCtxService

type RuntimeCtxService interface {
	ListByFilter(ctx context.Context, runtimeID string, filter []*labelfilter.LabelFilter, pageSize int, cursor string) (*model.RuntimeContextPage, error)
}

RuntimeCtxService is used to interact with runtime contexts.

type RuntimeService

type RuntimeService interface {
	GetLabel(context.Context, string, string) (*model.Label, error)
	GetByFilters(ctx context.Context, filters []*labelfilter.LabelFilter) (*model.Runtime, error)
}

RuntimeService is used to interact with runtimes.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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