idpconfig

package
v1.87.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 19, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

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

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

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL