Documentation ¶
Index ¶
- Constants
- 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
Constants ¶
View Source
const ( ErrTextCreationFailed = "resource creation failed" ErrTextGetRetrievalFailed = "resource retrieval failed" ErrTextNotFound = "resource not found" )
View Source
const ( ClientJwtSelector = "azp" UsernameJwtSelector = "preferred_username" )
Variables ¶
This section is empty.
Functions ¶
func CreateEntityChainFromJwt ¶ added in v0.4.3
func CreateEntityChainFromJwt( ctx context.Context, req *entityresolution.CreateEntityChainFromJwtRequest, kcConfig KeycloakConfig, logger *logger.Logger, ) (entityresolution.CreateEntityChainFromJwtResponse, error)
func EntityResolution ¶
func EntityResolution(ctx context.Context, req *entityresolution.ResolveEntitiesRequest, kcConfig KeycloakConfig, 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"` }
func (KeycloakConfig) LogValue ¶ added in v0.4.19
func (c KeycloakConfig) LogValue() slog.Value
Click to show internal directories.
Click to hide internal directories.