Documentation
¶
Index ¶
- Constants
- Variables
- func CreateEntityChainFromJwt(ctx context.Context, req *entityresolution.CreateEntityChainFromJwtRequest, ...) (entityresolution.CreateEntityChainFromJwtResponse, error)
- func EntityResolution(ctx context.Context, req *entityresolution.ResolveEntitiesRequest, ...) (entityresolution.ResolveEntitiesResponse, error)
- type EntityImpliedFrom
- type InferredIdentityConfig
- type KeyCloakConnector
- type KeycloakConfig
- type KeycloakEntityResolutionService
- func (s *KeycloakEntityResolutionService) CreateEntityChainFromJwt(ctx context.Context, ...) (*connect.Response[entityresolution.CreateEntityChainFromJwtResponse], error)
- func (s *KeycloakEntityResolutionService) ResolveEntities(ctx context.Context, ...) (*connect.Response[entityresolution.ResolveEntitiesResponse], error)
Constants ¶
View Source
const ( ClientJwtSelector = "azp" UsernameJwtSelector = "preferred_username" )
Variables ¶
Functions ¶
func CreateEntityChainFromJwt ¶ added in v0.4.3
func CreateEntityChainFromJwt( ctx context.Context, req *entityresolution.CreateEntityChainFromJwtRequest, kcConfig KeycloakConfig, connector *KeyCloakConnector, logger *logger.Logger, ) (entityresolution.CreateEntityChainFromJwtResponse, error)
func EntityResolution ¶
func EntityResolution(ctx context.Context, req *entityresolution.ResolveEntitiesRequest, kcConfig KeycloakConfig, connector *KeyCloakConnector, logger *logger.Logger, ) (entityresolution.ResolveEntitiesResponse, error)
Types ¶
type EntityImpliedFrom ¶ added in v0.4.11
type InferredIdentityConfig ¶ added in v0.4.11
type InferredIdentityConfig struct {
From EntityImpliedFrom `mapstructure:"from,omitempty" json:"from,omitempty"`
}
type KeyCloakConnector ¶
type KeyCloakConnector struct {
// contains filtered or unexported fields
}
type KeycloakConfig ¶
type KeycloakConfig 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"`
}
func (KeycloakConfig) LogValue ¶ added in v0.4.19
func (c KeycloakConfig) LogValue() slog.Value
type KeycloakEntityResolutionService ¶ added in v0.4.27
type KeycloakEntityResolutionService struct {
entityresolution.UnimplementedEntityResolutionServiceServer
trace.Tracer
// contains filtered or unexported fields
}
func RegisterKeycloakERS ¶ added in v0.4.27
func RegisterKeycloakERS(config config.ServiceConfig, logger *logger.Logger, svcCache *cache.Cache) (*KeycloakEntityResolutionService, serviceregistry.HandlerServer)
func (*KeycloakEntityResolutionService) CreateEntityChainFromJwt ¶ added in v0.4.27
func (s *KeycloakEntityResolutionService) CreateEntityChainFromJwt(ctx context.Context, req *connect.Request[entityresolution.CreateEntityChainFromJwtRequest]) (*connect.Response[entityresolution.CreateEntityChainFromJwtResponse], error)
func (*KeycloakEntityResolutionService) ResolveEntities ¶ added in v0.4.27
func (s *KeycloakEntityResolutionService) ResolveEntities(ctx context.Context, req *connect.Request[entityresolution.ResolveEntitiesRequest]) (*connect.Response[entityresolution.ResolveEntitiesResponse], error)
Click to show internal directories.
Click to hide internal directories.