mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 20:57:31 +00:00
fix: check oidc / api config (#1940)
This commit is contained in:
@@ -19,6 +19,7 @@ type APIApplicationWriteModel struct {
|
||||
ClientSecretString string
|
||||
AuthMethodType domain.APIAuthMethodType
|
||||
State domain.AppState
|
||||
api bool
|
||||
}
|
||||
|
||||
func NewAPIApplicationWriteModelWithAppID(projectID, appID, resourceOwner string) *APIApplicationWriteModel {
|
||||
@@ -122,6 +123,7 @@ func (wm *APIApplicationWriteModel) Reduce() error {
|
||||
}
|
||||
|
||||
func (wm *APIApplicationWriteModel) appendAddAPIEvent(e *project.APIConfigAddedEvent) {
|
||||
wm.api = true
|
||||
wm.ClientID = e.ClientID
|
||||
wm.ClientSecret = e.ClientSecret
|
||||
wm.AuthMethodType = e.AuthMethodType
|
||||
@@ -171,3 +173,7 @@ func (wm *APIApplicationWriteModel) NewChangedEvent(
|
||||
}
|
||||
return changeEvent, true, nil
|
||||
}
|
||||
|
||||
func (wm *APIApplicationWriteModel) IsAPI() bool {
|
||||
return wm.api
|
||||
}
|
||||
|
Reference in New Issue
Block a user