mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-15 04:18:01 +00:00
5699fe80d5
* feat: check oidc compliance * fix: add tests * fix: add oidc config tests * fix: add oidc config tests user agent * fix: test oidc config compliance * fix: test oidc config compliance * fix: useragent implicit authmethod none * fix: merge master * feat: translate compliance problems * feat: check native app for custom url * fix: better compliance handling * fix: better compliance handling * feat: add odidc dev mode * fix: remove deprecated request fro management api * fix: oidc package version * fix: migration * fix: tests * fix: remove unused functions * fix: generate proto files * fix: native implicit and code none compliant * fix: create project * Update internal/project/model/oidc_config_test.go Co-authored-by: Livio Amstutz <livio.a@gmail.com> * fix: tests * Update internal/project/model/oidc_config.go Co-authored-by: Livio Amstutz <livio.a@gmail.com> * Update internal/project/model/oidc_config.go Co-authored-by: Livio Amstutz <livio.a@gmail.com> * fix: tests Co-authored-by: Livio Amstutz <livio.a@gmail.com>
25 lines
560 B
Go
25 lines
560 B
Go
package management
|
|
|
|
import (
|
|
"github.com/caos/zitadel/internal/api/grpc/server/middleware"
|
|
)
|
|
|
|
func (a *ApplicationView) Localizers() []middleware.Localizer {
|
|
if a == nil {
|
|
return nil
|
|
}
|
|
|
|
switch configType := a.AppConfig.(type) {
|
|
case *ApplicationView_OidcConfig:
|
|
if !configType.OidcConfig.NoneCompliant {
|
|
return nil
|
|
}
|
|
localizers := make([]middleware.Localizer, len(configType.OidcConfig.ComplianceProblems))
|
|
for i, problem := range configType.OidcConfig.ComplianceProblems {
|
|
localizers[i] = problem
|
|
}
|
|
return localizers
|
|
}
|
|
return nil
|
|
}
|