Documentation
¶
Index ¶
- type OIDCMapping
- type OIDCMappingRepository
- type Service
- func (s *Service) ApplyMapping(ctx context.Context, tenantID string, mapping OIDCMapping) error
- func (s *Service) BlockMapping(ctx context.Context, tenantID string) error
- func (s *Service) RemoveMapping(ctx context.Context, tenantID string) error
- func (s *Service) UnblockMapping(ctx context.Context, tenantID string) error
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 (*Service) BlockMapping ¶
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 (*Service) UnblockMapping ¶
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.
Click to show internal directories.
Click to hide internal directories.