Documentation
¶
Index ¶
- Constants
- Variables
- func CreateEntityChainsFromTokens(ctx context.Context, ...) (entityresolutionV2.CreateEntityChainsFromTokensResponse, error)
- func EntityResolution(ctx context.Context, req *entityresolutionV2.ResolveEntitiesRequest, ...) (entityresolutionV2.ResolveEntitiesResponse, error)
- type Config
- type Connector
- type EntityImpliedFrom
- type EntityResolutionServiceV2
- func (s *EntityResolutionServiceV2) CreateEntityChainsFromTokens(ctx context.Context, ...) (*connect.Response[entityresolutionV2.CreateEntityChainsFromTokensResponse], ...)
- func (s *EntityResolutionServiceV2) ResolveEntities(ctx context.Context, ...) (*connect.Response[entityresolutionV2.ResolveEntitiesResponse], error)
- type InferredIdentityConfig
Constants ¶
View Source
const ( ClientJwtSelector = "azp" UsernameJwtSelector = "preferred_username" )
Variables ¶
Functions ¶
func CreateEntityChainsFromTokens ¶
func CreateEntityChainsFromTokens( ctx context.Context, req *entityresolutionV2.CreateEntityChainsFromTokensRequest, kcConfig Config, connector *Connector, logger *logger.Logger, svcCache *cache.Cache, ) (entityresolutionV2.CreateEntityChainsFromTokensResponse, error)
func EntityResolution ¶
func EntityResolution(ctx context.Context, req *entityresolutionV2.ResolveEntitiesRequest, kcConfig Config, connector *Connector, logger *logger.Logger, svcCache *cache.Cache, ) (entityresolutionV2.ResolveEntitiesResponse, error)
Types ¶
type Config ¶
type Config struct {
URL string `mapstructure:"url" json:"url"`
Realm string `mapstructure:"realm" json:"realm"`
ClientID string `mapstructure:"clientid" json:"clientid"`
ClientSecret string `mapstructure:"clientsecret" json:"clientsecret"`
LegacyKeycloak bool `mapstructure:"legacykeycloak" json:"legacykeycloak" default:"false"`
SubGroups bool `mapstructure:"subgroups" json:"subgroups" default:"false"`
InferID InferredIdentityConfig `mapstructure:"inferid,omitempty" json:"inferid,omitempty"`
TokenBuffer time.Duration `mapstructure:"token_buffer_seconds" json:"token_buffer_seconds" default:"120s"`
}
type EntityImpliedFrom ¶
type EntityResolutionServiceV2 ¶
type EntityResolutionServiceV2 struct {
entityresolutionV2.UnimplementedEntityResolutionServiceServer
trace.Tracer
// contains filtered or unexported fields
}
func RegisterKeycloakERS ¶
func RegisterKeycloakERS(config config.ServiceConfig, logger *logger.Logger, svcCache *cache.Cache) (*EntityResolutionServiceV2, serviceregistry.HandlerServer)
func (*EntityResolutionServiceV2) CreateEntityChainsFromTokens ¶
func (s *EntityResolutionServiceV2) CreateEntityChainsFromTokens(ctx context.Context, req *connect.Request[entityresolutionV2.CreateEntityChainsFromTokensRequest]) (*connect.Response[entityresolutionV2.CreateEntityChainsFromTokensResponse], error)
func (*EntityResolutionServiceV2) ResolveEntities ¶
func (s *EntityResolutionServiceV2) ResolveEntities(ctx context.Context, req *connect.Request[entityresolutionV2.ResolveEntitiesRequest]) (*connect.Response[entityresolutionV2.ResolveEntitiesResponse], error)
type InferredIdentityConfig ¶
type InferredIdentityConfig struct {
From EntityImpliedFrom `mapstructure:"from,omitempty" json:"from,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.