mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 18:57:32 +00:00
fix: check oidc / api config (#1940)
This commit is contained in:
@@ -34,6 +34,7 @@ type OIDCApplicationWriteModel struct {
|
||||
ClockSkew time.Duration
|
||||
State domain.AppState
|
||||
AdditionalOrigins []string
|
||||
oidc bool
|
||||
}
|
||||
|
||||
func NewOIDCApplicationWriteModelWithAppID(projectID, appID, resourceOwner string) *OIDCApplicationWriteModel {
|
||||
@@ -137,6 +138,7 @@ func (wm *OIDCApplicationWriteModel) Reduce() error {
|
||||
}
|
||||
|
||||
func (wm *OIDCApplicationWriteModel) appendAddOIDCEvent(e *project.OIDCConfigAddedEvent) {
|
||||
wm.oidc = true
|
||||
wm.ClientID = e.ClientID
|
||||
wm.ClientSecret = e.ClientSecret
|
||||
wm.RedirectUris = e.RedirectUris
|
||||
@@ -290,3 +292,7 @@ func (wm *OIDCApplicationWriteModel) NewChangedEvent(
|
||||
}
|
||||
return changeEvent, true, nil
|
||||
}
|
||||
|
||||
func (wm *OIDCApplicationWriteModel) IsOIDC() bool {
|
||||
return wm.oidc
|
||||
}
|
||||
|
Reference in New Issue
Block a user