mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 07:47:32 +00:00
chore: move the go code into a subfolder
This commit is contained in:
34
apps/api/pkg/grpc/app/application.go
Normal file
34
apps/api/pkg/grpc/app/application.go
Normal file
@@ -0,0 +1,34 @@
|
||||
package app
|
||||
|
||||
import (
|
||||
"github.com/zitadel/zitadel/internal/api/grpc/server/middleware"
|
||||
)
|
||||
|
||||
func (a *App) Localizers() []middleware.Localizer {
|
||||
if a == nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
switch configType := a.Config.(type) {
|
||||
case *App_OidcConfig:
|
||||
return configType.ComplianceLocalizers()
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (o *App_OidcConfig) ComplianceLocalizers() []middleware.Localizer {
|
||||
if o.OidcConfig == nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
if !o.OidcConfig.NoneCompliant {
|
||||
return nil
|
||||
}
|
||||
localizers := make([]middleware.Localizer, len(o.OidcConfig.ComplianceProblems))
|
||||
for i, problem := range o.OidcConfig.ComplianceProblems {
|
||||
localizers[i] = problem
|
||||
}
|
||||
return localizers
|
||||
}
|
||||
|
||||
type AppConfig = isApp_Config
|
5
apps/api/pkg/grpc/app/v2beta/application.go
Normal file
5
apps/api/pkg/grpc/app/v2beta/application.go
Normal file
@@ -0,0 +1,5 @@
|
||||
package app
|
||||
|
||||
type ApplicationConfig = isApplication_Config
|
||||
|
||||
type MetaType = isUpdateSAMLApplicationConfigurationRequest_Metadata
|
Reference in New Issue
Block a user