mirror of
https://github.com/andwati/zitadel.git
synced 2026-10-18 05:52:51 +00:00
# Which Problems Are Solved The following terms have all been renamed to management console: - Customer Portal (when used to mean the console) - Console - Admin Console # How the Problems Are Solved - Search & Replace smartly - Use Copilot for translation files Changes done to: backend + frontend codebase, docs, translations and protobufs (descriptions only) # Additional Context - Partially Closes #11279
67 lines
1.7 KiB
Go
67 lines
1.7 KiB
Go
package domain
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/zitadel/zitadel/internal/eventstore"
|
|
)
|
|
|
|
// TODO(IAM-Marco): Finish implementation
|
|
type OIDCConfigurationUpdate struct {
|
|
instanceDomainName string
|
|
projectID string
|
|
managementConsoleAppID string
|
|
|
|
// oidcConfigChanges []OIDConfigChange
|
|
// appID string
|
|
}
|
|
|
|
// RequiresTransaction implements [Transactional].
|
|
func (o *OIDCConfigurationUpdate) RequiresTransaction() {}
|
|
|
|
func NewOIDCConfigurationUpdate(instanceDomainName, projectID, managementConsoleAppID string) *OIDCConfigurationUpdate {
|
|
return &OIDCConfigurationUpdate{
|
|
instanceDomainName: instanceDomainName,
|
|
projectID: projectID,
|
|
managementConsoleAppID: managementConsoleAppID,
|
|
}
|
|
}
|
|
|
|
// Events implements [Commander].
|
|
func (o *OIDCConfigurationUpdate) Events(ctx context.Context, opts *InvokeOpts) ([]eventstore.Command, error) {
|
|
// oidcConfigChangedEvent, err := project.NewOIDCConfigChangedEvent(
|
|
// ctx,
|
|
// &project.NewAggregate(o.appID, o.projectID).Aggregate,
|
|
// o.appID,
|
|
// changes,
|
|
// o.oidcConfigChanges,
|
|
// )
|
|
// if err != nil {
|
|
// return nil, err
|
|
// }
|
|
// return []eventstore.Command{
|
|
// oidcConfigChangedEvent,
|
|
// }, nil
|
|
return nil, nil
|
|
}
|
|
|
|
// Execute implements [Commander].
|
|
func (o *OIDCConfigurationUpdate) Execute(ctx context.Context, opts *InvokeOpts) (err error) {
|
|
return nil
|
|
}
|
|
|
|
// String implements [Commander].
|
|
func (o *OIDCConfigurationUpdate) String() string {
|
|
return "OIDCConfigurationUpdate"
|
|
}
|
|
|
|
// Validate implements [Commander].
|
|
func (o *OIDCConfigurationUpdate) Validate(ctx context.Context, opts *InvokeOpts) (err error) {
|
|
return nil
|
|
}
|
|
|
|
var (
|
|
_ (Commander) = (*OIDCConfigurationUpdate)(nil)
|
|
_ (Transactional) = (*OIDCConfigurationUpdate)(nil)
|
|
)
|