Documentation ¶
Index ¶
- Constants
- func ChangeAuthorizationEndpoint(authorizationEndpoint string) func(*OIDCConfigChangedEvent)
- func ChangeAutoRegister(autoRegister bool) func(*IDPConfigChangedEvent)
- func ChangeClientID(clientID string) func(*OIDCConfigChangedEvent)
- func ChangeClientSecret(secret *crypto.CryptoValue) func(*OIDCConfigChangedEvent)
- func ChangeHeaderName(headerName string) func(*JWTConfigChangedEvent)
- func ChangeIDPDisplayNameMapping(idpDisplayNameMapping domain.OIDCMappingField) func(*OIDCConfigChangedEvent)
- func ChangeIssuer(issuer string) func(*OIDCConfigChangedEvent)
- func ChangeJWTEndpoint(jwtEndpoint string) func(*JWTConfigChangedEvent)
- func ChangeJWTIssuer(issuer string) func(*JWTConfigChangedEvent)
- func ChangeKeysEndpoint(keysEndpoint string) func(*JWTConfigChangedEvent)
- func ChangeName(name string) func(*IDPConfigChangedEvent)
- func ChangeScopes(scopes []string) func(*OIDCConfigChangedEvent)
- func ChangeStyleType(styleType domain.IDPConfigStylingType) func(*IDPConfigChangedEvent)
- func ChangeTokenEndpoint(tokenEndpoint string) func(*OIDCConfigChangedEvent)
- func ChangeUserNameMapping(userNameMapping domain.OIDCMappingField) func(*OIDCConfigChangedEvent)
- func IDPConfigAddedEventMapper(event *repository.Event) (eventstore.Event, error)
- func IDPConfigChangedEventMapper(event *repository.Event) (eventstore.Event, error)
- func IDPConfigDeactivatedEventMapper(event *repository.Event) (eventstore.Event, error)
- func IDPConfigReactivatedEventMapper(event *repository.Event) (eventstore.Event, error)
- func IDPConfigRemovedEventMapper(event *repository.Event) (eventstore.Event, error)
- func JWTConfigAddedEventMapper(event *repository.Event) (eventstore.Event, error)
- func JWTConfigChangedEventMapper(event *repository.Event) (eventstore.Event, error)
- func NewAddIDPConfigNameUniqueConstraint(idpConfigName, resourceOwner string) *eventstore.EventUniqueConstraint
- func NewRemoveIDPConfigNameUniqueConstraint(idpConfigName, resourceOwner string) *eventstore.EventUniqueConstraint
- func OIDCConfigAddedEventMapper(event *repository.Event) (eventstore.Event, error)
- func OIDCConfigChangedEventMapper(event *repository.Event) (eventstore.Event, error)
- type IDPConfigAddedEvent
- type IDPConfigChangedEvent
- type IDPConfigChanges
- type IDPConfigDeactivatedEvent
- type IDPConfigReactivatedEvent
- type IDPConfigRemovedEvent
- type JWTConfigAddedEvent
- type JWTConfigChangedEvent
- type JWTConfigChanges
- type OIDCConfigAddedEvent
- type OIDCConfigChangedEvent
- type OIDCConfigChanges
Constants ¶
View Source
const ( JWTConfigAddedEventType eventstore.EventType = "jwt.config.added" JWTConfigChangedEventType eventstore.EventType = "jwt.config.changed" )
View Source
const ( OIDCConfigAddedEventType eventstore.EventType = "oidc.config.added" OIDCConfigChangedEventType eventstore.EventType = "oidc.config.changed" )
View Source
const (
UniqueIDPConfigNameType = "idp_config_names"
)
Variables ¶
This section is empty.
Functions ¶
func ChangeAuthorizationEndpoint ¶
func ChangeAuthorizationEndpoint(authorizationEndpoint string) func(*OIDCConfigChangedEvent)
func ChangeAutoRegister ¶
func ChangeAutoRegister(autoRegister bool) func(*IDPConfigChangedEvent)
func ChangeClientID ¶
func ChangeClientID(clientID string) func(*OIDCConfigChangedEvent)
func ChangeClientSecret ¶
func ChangeClientSecret(secret *crypto.CryptoValue) func(*OIDCConfigChangedEvent)
func ChangeHeaderName ¶
func ChangeHeaderName(headerName string) func(*JWTConfigChangedEvent)
func ChangeIDPDisplayNameMapping ¶
func ChangeIDPDisplayNameMapping(idpDisplayNameMapping domain.OIDCMappingField) func(*OIDCConfigChangedEvent)
func ChangeIssuer ¶
func ChangeIssuer(issuer string) func(*OIDCConfigChangedEvent)
func ChangeJWTEndpoint ¶
func ChangeJWTEndpoint(jwtEndpoint string) func(*JWTConfigChangedEvent)
func ChangeJWTIssuer ¶
func ChangeJWTIssuer(issuer string) func(*JWTConfigChangedEvent)
func ChangeKeysEndpoint ¶
func ChangeKeysEndpoint(keysEndpoint string) func(*JWTConfigChangedEvent)
func ChangeName ¶
func ChangeName(name string) func(*IDPConfigChangedEvent)
func ChangeScopes ¶
func ChangeScopes(scopes []string) func(*OIDCConfigChangedEvent)
func ChangeStyleType ¶
func ChangeStyleType(styleType domain.IDPConfigStylingType) func(*IDPConfigChangedEvent)
func ChangeTokenEndpoint ¶
func ChangeTokenEndpoint(tokenEndpoint string) func(*OIDCConfigChangedEvent)
func ChangeUserNameMapping ¶
func ChangeUserNameMapping(userNameMapping domain.OIDCMappingField) func(*OIDCConfigChangedEvent)
func IDPConfigAddedEventMapper ¶
func IDPConfigAddedEventMapper(event *repository.Event) (eventstore.Event, error)
func IDPConfigChangedEventMapper ¶
func IDPConfigChangedEventMapper(event *repository.Event) (eventstore.Event, error)
func IDPConfigDeactivatedEventMapper ¶
func IDPConfigDeactivatedEventMapper(event *repository.Event) (eventstore.Event, error)
func IDPConfigReactivatedEventMapper ¶
func IDPConfigReactivatedEventMapper(event *repository.Event) (eventstore.Event, error)
func IDPConfigRemovedEventMapper ¶
func IDPConfigRemovedEventMapper(event *repository.Event) (eventstore.Event, error)
func JWTConfigAddedEventMapper ¶
func JWTConfigAddedEventMapper(event *repository.Event) (eventstore.Event, error)
func JWTConfigChangedEventMapper ¶
func JWTConfigChangedEventMapper(event *repository.Event) (eventstore.Event, error)
func NewAddIDPConfigNameUniqueConstraint ¶
func NewAddIDPConfigNameUniqueConstraint(idpConfigName, resourceOwner string) *eventstore.EventUniqueConstraint
func NewRemoveIDPConfigNameUniqueConstraint ¶
func NewRemoveIDPConfigNameUniqueConstraint(idpConfigName, resourceOwner string) *eventstore.EventUniqueConstraint
func OIDCConfigAddedEventMapper ¶
func OIDCConfigAddedEventMapper(event *repository.Event) (eventstore.Event, error)
func OIDCConfigChangedEventMapper ¶
func OIDCConfigChangedEventMapper(event *repository.Event) (eventstore.Event, error)
Types ¶
type IDPConfigAddedEvent ¶
type IDPConfigAddedEvent struct { eventstore.BaseEvent `json:"-"` ConfigID string `json:"idpConfigId"` Name string `json:"name,omitempty"` Typ domain.IDPConfigType `json:"idpType,omitempty"` StylingType domain.IDPConfigStylingType `json:"stylingType,omitempty"` AutoRegister bool `json:"autoRegister,omitempty"` }
func NewIDPConfigAddedEvent ¶
func NewIDPConfigAddedEvent( base *eventstore.BaseEvent, configID, name string, configType domain.IDPConfigType, stylingType domain.IDPConfigStylingType, autoRegister bool, ) *IDPConfigAddedEvent
func (*IDPConfigAddedEvent) Data ¶
func (e *IDPConfigAddedEvent) Data() interface{}
func (*IDPConfigAddedEvent) UniqueConstraints ¶
func (e *IDPConfigAddedEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint
type IDPConfigChangedEvent ¶
type IDPConfigChangedEvent struct { eventstore.BaseEvent `json:"-"` ConfigID string `json:"idpConfigId"` Name *string `json:"name,omitempty"` StylingType *domain.IDPConfigStylingType `json:"stylingType,omitempty"` AutoRegister *bool `json:"autoRegister,omitempty"` // contains filtered or unexported fields }
func NewIDPConfigChangedEvent ¶
func NewIDPConfigChangedEvent( base *eventstore.BaseEvent, configID, oldName string, changes []IDPConfigChanges, ) (*IDPConfigChangedEvent, error)
func (*IDPConfigChangedEvent) Data ¶
func (e *IDPConfigChangedEvent) Data() interface{}
func (*IDPConfigChangedEvent) UniqueConstraints ¶
func (e *IDPConfigChangedEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint
type IDPConfigChanges ¶
type IDPConfigChanges func(*IDPConfigChangedEvent)
type IDPConfigDeactivatedEvent ¶
type IDPConfigDeactivatedEvent struct { eventstore.BaseEvent `json:"-"` ConfigID string `json:"idpConfigId"` }
func NewIDPConfigDeactivatedEvent ¶
func NewIDPConfigDeactivatedEvent( base *eventstore.BaseEvent, configID string, ) *IDPConfigDeactivatedEvent
func (*IDPConfigDeactivatedEvent) Data ¶
func (e *IDPConfigDeactivatedEvent) Data() interface{}
func (*IDPConfigDeactivatedEvent) UniqueConstraints ¶
func (e *IDPConfigDeactivatedEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint
type IDPConfigReactivatedEvent ¶
type IDPConfigReactivatedEvent struct { eventstore.BaseEvent `json:"-"` ConfigID string `json:"idpConfigId"` }
func NewIDPConfigReactivatedEvent ¶
func NewIDPConfigReactivatedEvent( base *eventstore.BaseEvent, configID string, ) *IDPConfigReactivatedEvent
func (*IDPConfigReactivatedEvent) Data ¶
func (e *IDPConfigReactivatedEvent) Data() interface{}
func (*IDPConfigReactivatedEvent) UniqueConstraints ¶
func (e *IDPConfigReactivatedEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint
type IDPConfigRemovedEvent ¶
type IDPConfigRemovedEvent struct { eventstore.BaseEvent `json:"-"` ConfigID string `json:"idpConfigId"` // contains filtered or unexported fields }
func NewIDPConfigRemovedEvent ¶
func NewIDPConfigRemovedEvent( base *eventstore.BaseEvent, configID string, name string, ) *IDPConfigRemovedEvent
func (*IDPConfigRemovedEvent) Data ¶
func (e *IDPConfigRemovedEvent) Data() interface{}
func (*IDPConfigRemovedEvent) UniqueConstraints ¶
func (e *IDPConfigRemovedEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint
type JWTConfigAddedEvent ¶
type JWTConfigAddedEvent struct { eventstore.BaseEvent `json:"-"` IDPConfigID string `json:"idpConfigId"` JWTEndpoint string `json:"jwtEndpoint,omitempty"` Issuer string `json:"issuer,omitempty"` KeysEndpoint string `json:"keysEndpoint,omitempty"` HeaderName string `json:"headerName,omitempty"` }
func NewJWTConfigAddedEvent ¶
func NewJWTConfigAddedEvent( base *eventstore.BaseEvent, idpConfigID, jwtEndpoint, issuer, keysEndpoint, headerName string, ) *JWTConfigAddedEvent
func (*JWTConfigAddedEvent) Data ¶
func (e *JWTConfigAddedEvent) Data() interface{}
func (*JWTConfigAddedEvent) UniqueConstraints ¶
func (e *JWTConfigAddedEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint
type JWTConfigChangedEvent ¶
type JWTConfigChangedEvent struct { eventstore.BaseEvent `json:"-"` IDPConfigID string `json:"idpConfigId"` JWTEndpoint *string `json:"jwtEndpoint,omitempty"` Issuer *string `json:"issuer,omitempty"` KeysEndpoint *string `json:"keysEndpoint,omitempty"` HeaderName *string `json:"headerName,omitempty"` }
func NewJWTConfigChangedEvent ¶
func NewJWTConfigChangedEvent( base *eventstore.BaseEvent, idpConfigID string, changes []JWTConfigChanges, ) (*JWTConfigChangedEvent, error)
func (*JWTConfigChangedEvent) Data ¶
func (e *JWTConfigChangedEvent) Data() interface{}
func (*JWTConfigChangedEvent) UniqueConstraints ¶
func (e *JWTConfigChangedEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint
type JWTConfigChanges ¶
type JWTConfigChanges func(*JWTConfigChangedEvent)
type OIDCConfigAddedEvent ¶
type OIDCConfigAddedEvent struct { eventstore.BaseEvent `json:"-"` IDPConfigID string `json:"idpConfigId"` ClientID string `json:"clientId,omitempty"` ClientSecret *crypto.CryptoValue `json:"clientSecret,omitempty"` Issuer string `json:"issuer,omitempty"` AuthorizationEndpoint string `json:"authorizationEndpoint,omitempty"` TokenEndpoint string `json:"tokenEndpoint,omitempty"` Scopes []string `json:"scopes,omitempty"` IDPDisplayNameMapping domain.OIDCMappingField `json:"idpDisplayNameMapping,omitempty"` UserNameMapping domain.OIDCMappingField `json:"usernameMapping,omitempty"` }
func NewOIDCConfigAddedEvent ¶
func NewOIDCConfigAddedEvent( base *eventstore.BaseEvent, clientID, idpConfigID, issuer, authorizationEndpoint, tokenEndpoint string, clientSecret *crypto.CryptoValue, idpDisplayNameMapping, userNameMapping domain.OIDCMappingField, scopes ...string, ) *OIDCConfigAddedEvent
func (*OIDCConfigAddedEvent) Data ¶
func (e *OIDCConfigAddedEvent) Data() interface{}
func (*OIDCConfigAddedEvent) UniqueConstraints ¶
func (e *OIDCConfigAddedEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint
type OIDCConfigChangedEvent ¶
type OIDCConfigChangedEvent struct { eventstore.BaseEvent `json:"-"` IDPConfigID string `json:"idpConfigId"` ClientID *string `json:"clientId,omitempty"` ClientSecret *crypto.CryptoValue `json:"clientSecret,omitempty"` Issuer *string `json:"issuer,omitempty"` AuthorizationEndpoint *string `json:"authorizationEndpoint,omitempty"` TokenEndpoint *string `json:"tokenEndpoint,omitempty"` Scopes []string `json:"scopes,omitempty"` IDPDisplayNameMapping *domain.OIDCMappingField `json:"idpDisplayNameMapping,omitempty"` UserNameMapping *domain.OIDCMappingField `json:"usernameMapping,omitempty"` }
func NewOIDCConfigChangedEvent ¶
func NewOIDCConfigChangedEvent( base *eventstore.BaseEvent, idpConfigID string, changes []OIDCConfigChanges, ) (*OIDCConfigChangedEvent, error)
func (*OIDCConfigChangedEvent) Data ¶
func (e *OIDCConfigChangedEvent) Data() interface{}
func (*OIDCConfigChangedEvent) UniqueConstraints ¶
func (e *OIDCConfigChangedEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint
type OIDCConfigChanges ¶
type OIDCConfigChanges func(*OIDCConfigChangedEvent)
Click to show internal directories.
Click to hide internal directories.