fix: handle project deactivate and remove correctly on tokens (#6947)

This commit is contained in:
Livio Spring
2023-11-21 11:05:22 +02:00
committed by GitHub
parent 492b7d8676
commit ad3563d58b
3 changed files with 50 additions and 2 deletions

View File

@@ -219,7 +219,7 @@ func (t *Token) Reduce(event eventstore.Event) (_ *handler.Statement, err error)
}
applicationIDs := make([]string, 0, len(project.Applications))
for _, app := range project.Applications {
if app.OIDCConfig != nil {
if app.OIDCConfig != nil && app.OIDCConfig.ClientID != "" {
applicationIDs = append(applicationIDs, app.OIDCConfig.ClientID)
}
}