mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-23 05:18:46 +00:00
chore: management console naming inconsistency (#11390)
# Which Problems Are Solved The following terms have all been renamed to management console: - Customer Portal (when used to mean the console) - Console - Admin Console # How the Problems Are Solved - Search & Replace smartly - Use Copilot for translation files Changes done to: backend + frontend codebase, docs, translations and protobufs (descriptions only) # Additional Context - Partially Closes #11279
This commit is contained in:
@@ -15,8 +15,8 @@ var emptyInstance = &instance{}
|
||||
type Instance interface {
|
||||
InstanceID() string
|
||||
ProjectID() string
|
||||
ConsoleClientID() string
|
||||
ConsoleApplicationID() string
|
||||
ManagementConsoleClientID() string
|
||||
ManagementConsoleApplicationID() string
|
||||
DefaultLanguage() language.Tag
|
||||
DefaultOrganisationID() string
|
||||
SecurityPolicyAllowedOrigins() []string
|
||||
@@ -62,11 +62,11 @@ func (i *instance) ProjectID() string {
|
||||
return i.projectID
|
||||
}
|
||||
|
||||
func (i *instance) ConsoleClientID() string {
|
||||
func (i *instance) ManagementConsoleClientID() string {
|
||||
return i.clientID
|
||||
}
|
||||
|
||||
func (i *instance) ConsoleApplicationID() string {
|
||||
func (i *instance) ManagementConsoleApplicationID() string {
|
||||
return i.appID
|
||||
}
|
||||
|
||||
@@ -124,7 +124,7 @@ func WithDefaultLanguage(ctx context.Context, defaultLanguage language.Tag) cont
|
||||
return context.WithValue(ctx, instanceKey, i)
|
||||
}
|
||||
|
||||
func WithConsole(ctx context.Context, projectID, appID string) context.Context {
|
||||
func WithManagementConsole(ctx context.Context, projectID, appID string) context.Context {
|
||||
i, ok := ctx.Value(instanceKey).(*instance)
|
||||
if !ok {
|
||||
i = new(instance)
|
||||
@@ -135,7 +135,7 @@ func WithConsole(ctx context.Context, projectID, appID string) context.Context {
|
||||
return context.WithValue(ctx, instanceKey, i)
|
||||
}
|
||||
|
||||
func WithConsoleClientID(ctx context.Context, clientID string) context.Context {
|
||||
func WithManagementConsoleClientID(ctx context.Context, clientID string) context.Context {
|
||||
i, ok := ctx.Value(instanceKey).(*instance)
|
||||
if !ok {
|
||||
i = new(instance)
|
||||
|
||||
@@ -57,7 +57,7 @@ func Test_Instance(t *testing.T) {
|
||||
res{
|
||||
instanceID: "instanceID",
|
||||
projectID: "projectID",
|
||||
consoleID: "consoleID",
|
||||
consoleID: "managementConsoleID",
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -79,7 +79,7 @@ func Test_Instance(t *testing.T) {
|
||||
got := GetInstance(tt.args.ctx)
|
||||
assert.Equal(t, tt.res.instanceID, got.InstanceID())
|
||||
assert.Equal(t, tt.res.projectID, got.ProjectID())
|
||||
assert.Equal(t, tt.res.consoleID, got.ConsoleClientID())
|
||||
assert.Equal(t, tt.res.consoleID, got.ManagementConsoleClientID())
|
||||
assert.Equal(t, tt.res.features, got.Features())
|
||||
})
|
||||
}
|
||||
@@ -103,11 +103,11 @@ func (m *mockInstance) ProjectID() string {
|
||||
return "projectID"
|
||||
}
|
||||
|
||||
func (m *mockInstance) ConsoleClientID() string {
|
||||
return "consoleID"
|
||||
func (m *mockInstance) ManagementConsoleClientID() string {
|
||||
return "managementConsoleID"
|
||||
}
|
||||
|
||||
func (m *mockInstance) ConsoleApplicationID() string {
|
||||
func (m *mockInstance) ManagementConsoleApplicationID() string {
|
||||
return "appID"
|
||||
}
|
||||
|
||||
|
||||
@@ -60,7 +60,7 @@ func instanceFeaturesToCommand(req *feature_pb.SetInstanceFeaturesRequest) (*com
|
||||
EnableBackChannelLogout: req.EnableBackChannelLogout,
|
||||
LoginV2: loginV2,
|
||||
PermissionCheckV2: req.PermissionCheckV2,
|
||||
ConsoleUseV2UserApi: req.ConsoleUseV2UserApi,
|
||||
ManagementConsoleUseV2UserApi: req.ConsoleUseV2UserApi,
|
||||
EnableRelationalTables: req.EnableRelationalTables,
|
||||
}, nil
|
||||
}
|
||||
@@ -77,7 +77,7 @@ func instanceFeaturesToPb(f *query.InstanceFeatures) *feature_pb.GetInstanceFeat
|
||||
EnableBackChannelLogout: featureSourceToFlagPb(&f.EnableBackChannelLogout),
|
||||
LoginV2: loginV2ToLoginV2FlagPb(f.LoginV2),
|
||||
PermissionCheckV2: featureSourceToFlagPb(&f.PermissionCheckV2),
|
||||
ConsoleUseV2UserApi: featureSourceToFlagPb(&f.ConsoleUseV2UserApi),
|
||||
ConsoleUseV2UserApi: featureSourceToFlagPb(&f.ManagementConsoleUseV2UserApi),
|
||||
EnableRelationalTables: featureSourceToFlagPb(&f.EnableRelationalTables),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -190,9 +190,9 @@ func Test_instanceFeaturesToCommand(t *testing.T) {
|
||||
Required: true,
|
||||
BaseURI: &url.URL{Scheme: "https", Host: "login.com"},
|
||||
},
|
||||
ConsoleUseV2UserApi: gu.Ptr(true),
|
||||
PermissionCheckV2: gu.Ptr(false),
|
||||
EnableRelationalTables: gu.Ptr(true),
|
||||
ManagementConsoleUseV2UserApi: gu.Ptr(true),
|
||||
PermissionCheckV2: gu.Ptr(false),
|
||||
EnableRelationalTables: gu.Ptr(true),
|
||||
}
|
||||
|
||||
// Test
|
||||
@@ -247,7 +247,7 @@ func Test_instanceFeaturesToPb(t *testing.T) {
|
||||
Level: feature.LevelInstance,
|
||||
Value: true,
|
||||
},
|
||||
ConsoleUseV2UserApi: query.FeatureSource[bool]{
|
||||
ManagementConsoleUseV2UserApi: query.FeatureSource[bool]{
|
||||
Level: feature.LevelInstance,
|
||||
Value: true,
|
||||
},
|
||||
|
||||
@@ -269,11 +269,11 @@ func (m *mockInstance) ProjectID() string {
|
||||
return "projectID"
|
||||
}
|
||||
|
||||
func (m *mockInstance) ConsoleClientID() string {
|
||||
func (m *mockInstance) ManagementConsoleClientID() string {
|
||||
return "consoleClientID"
|
||||
}
|
||||
|
||||
func (m *mockInstance) ConsoleApplicationID() string {
|
||||
func (m *mockInstance) ManagementConsoleApplicationID() string {
|
||||
return "consoleApplicationID"
|
||||
}
|
||||
|
||||
|
||||
@@ -105,7 +105,7 @@ func TestServer_Limits_Block(t *testing.T) {
|
||||
nil,
|
||||
)
|
||||
return req, err, func(ttt assert.TestingT, response *http.Response, expectBlocked bool) {
|
||||
// the console is not blocked so we can render a link to an instance management portal.
|
||||
// the management console is not blocked so we can render a link to an instance management portal.
|
||||
// A CDN can cache these assets easily
|
||||
// We also don't care about a cookie because the environment.json already takes care of that.
|
||||
assertLimitResponse(ttt, response, false)
|
||||
|
||||
@@ -92,7 +92,7 @@ func (a *AccessInterceptor) Limit(w http.ResponseWriter, r *http.Request, public
|
||||
}
|
||||
remaining := a.logstoreSvc.Limit(ctx, instance.InstanceID())
|
||||
if remaining != nil {
|
||||
if remaining != nil && *remaining > 0 {
|
||||
if *remaining > 0 {
|
||||
deleteCookie = true
|
||||
return false
|
||||
}
|
||||
@@ -138,7 +138,7 @@ func (a *AccessInterceptor) handle(publicAuthPathPrefixes ...string) func(http.H
|
||||
checkSpan.End()
|
||||
if limited {
|
||||
if a.redirect != "" {
|
||||
// The console guides the user when the cookie is set
|
||||
// The management console guides the user when the cookie is set
|
||||
http.Redirect(wrappedWriter, request, a.redirect, http.StatusFound)
|
||||
} else {
|
||||
http.Error(wrappedWriter, "Your ZITADEL instance is blocked.", http.StatusTooManyRequests)
|
||||
|
||||
@@ -326,11 +326,11 @@ func (m *mockInstance) ProjectID() string {
|
||||
return "projectID"
|
||||
}
|
||||
|
||||
func (m *mockInstance) ConsoleClientID() string {
|
||||
func (m *mockInstance) ManagementConsoleClientID() string {
|
||||
return "consoleClientID"
|
||||
}
|
||||
|
||||
func (m *mockInstance) ConsoleApplicationID() string {
|
||||
func (m *mockInstance) ManagementConsoleApplicationID() string {
|
||||
return "consoleApplicationID"
|
||||
}
|
||||
|
||||
|
||||
@@ -126,13 +126,13 @@ func Start(config Config, externalSecure bool, issuer op.IssuerFromRequest, call
|
||||
instance := authz.GetInstance(ctx)
|
||||
instanceMgmtURL, err := templateInstanceManagementURL(config.InstanceManagementURL, instance)
|
||||
if err != nil {
|
||||
http.Error(w, fmt.Sprintf("unable to template instance management url for console: %v", err), http.StatusInternalServerError)
|
||||
http.Error(w, fmt.Sprintf("unable to template instance management url for the management console: %v", err), http.StatusInternalServerError)
|
||||
return
|
||||
}
|
||||
limited := limitingAccessInterceptor.Limit(w, r)
|
||||
environmentJSON, err := createEnvironmentJSON(url, issuer(r), instance.ConsoleClientID(), customerPortal, instanceMgmtURL, config.PostHog.URL, config.PostHog.Token, limited)
|
||||
environmentJSON, err := createEnvironmentJSON(url, issuer(r), instance.ManagementConsoleClientID(), customerPortal, instanceMgmtURL, config.PostHog.URL, config.PostHog.Token, limited)
|
||||
if err != nil {
|
||||
http.Error(w, fmt.Sprintf("unable to marshal env for console: %v", err), http.StatusInternalServerError)
|
||||
http.Error(w, fmt.Sprintf("unable to marshal env for the management console: %v", err), http.StatusInternalServerError)
|
||||
return
|
||||
}
|
||||
_, err = w.Write(environmentJSON)
|
||||
|
||||
@@ -4,7 +4,7 @@ Login:
|
||||
TitleLinking: Влезте за потребителско свързване
|
||||
DescriptionLinking: >-
|
||||
Въведете вашите данни за вход, за да свържете вашия външен потребител с
|
||||
потребител на ZITADEL.
|
||||
потребител на Zitadel.
|
||||
LoginNameLabel: Потребителско име
|
||||
UsernamePlaceHolder: потребителско име
|
||||
LoginnamePlaceHolder: потребителско име@домейн
|
||||
@@ -20,7 +20,7 @@ LDAP:
|
||||
NextButtonText: следващия
|
||||
SelectAccount:
|
||||
Title: Изберете акаунт
|
||||
Description: Използвайте вашия ZITADEL-акаунт
|
||||
Description: Използвайте вашия Zitadel-акаунт
|
||||
TitleLinking: Изберете акаунт за свързване на потребител
|
||||
DescriptionLinking: 'Изберете своя акаунт, който да свържете с вашия външен потребител.'
|
||||
OtherUser: Друг потребител
|
||||
|
||||
@@ -2,7 +2,7 @@ Login:
|
||||
Title: Bienvenue!
|
||||
Description: Entrez vos données de connexion.
|
||||
TitleLinking: Login pour la liaison des utilisateurs
|
||||
DescriptionLinking: Entrez vos données de connexion pour lier votre utilisateur externe avec un utilisateur ZITADEL.
|
||||
DescriptionLinking: Entrez vos données de connexion pour lier votre utilisateur externe avec un utilisateur Zitadel.
|
||||
LoginNameLabel: Identifiant
|
||||
UsernamePlaceHolder: Nom d'utilisateur
|
||||
LoginnamePlaceHolder: Nom d'utilisateur
|
||||
@@ -20,7 +20,7 @@ LDAP:
|
||||
|
||||
SelectAccount:
|
||||
Title: Sélectionner un compte
|
||||
Description: Utilisez votre compte ZITADEL.
|
||||
Description: Utilisez votre compte Zitadel.
|
||||
TitleLinking: Sélectionnez le compte pour le lien avec l'utilisateur
|
||||
DescriptionLinking: Sélectionnez votre compte pour établir un lien avec votre utilisateur externe.
|
||||
OtherUser: Autre utilisateur
|
||||
|
||||
@@ -2,7 +2,7 @@ Login:
|
||||
Title: Bentornato!
|
||||
Description: Inserisci i tuoi dati di accesso.
|
||||
TitleLinking: Accesso per il collegamento degli utenti
|
||||
DescriptionLinking: Inserisci i tuoi dati di accesso per collegare il tuo utente esterno con un utente ZITADEL.
|
||||
DescriptionLinking: Inserisci i tuoi dati di accesso per collegare il tuo utente esterno con un utente Zitadel.
|
||||
LoginNameLabel: Nome di accesso
|
||||
UsernamePlaceHolder: nome utente
|
||||
LoginnamePlaceHolder: nomeutente@dominio
|
||||
@@ -20,7 +20,7 @@ LDAP:
|
||||
|
||||
SelectAccount:
|
||||
Title: Seleziona l'account
|
||||
Description: Usa il tuo account ZITADEL
|
||||
Description: Usa il tuo account Zitadel
|
||||
TitleLinking: Seleziona l'account per il collegamento dell'utente
|
||||
DescriptionLinking: Seleziona il tuo account da collegare al tuo utente esterno.
|
||||
OtherUser: Altro utente
|
||||
|
||||
@@ -2,7 +2,7 @@ Login:
|
||||
Title: ようこそ!
|
||||
Description: ログイン情報を入力してください。
|
||||
TitleLinking: ユーザーリンク用のログイン
|
||||
DescriptionLinking: ログインデータを入力して、外部ユーザーをZITADELユーザーにリンクします。
|
||||
DescriptionLinking: ログインデータを入力して、外部ユーザーをZitadelユーザーにリンクします。
|
||||
LoginNameLabel: ログイン名
|
||||
UsernamePlaceHolder: ユーザー名
|
||||
LoginnamePlaceHolder: ユーザー名@ドメイン
|
||||
@@ -20,7 +20,7 @@ LDAP:
|
||||
|
||||
SelectAccount:
|
||||
Title: アカウントの選択
|
||||
Description: ZITADELアカウントを使用します。
|
||||
Description: Zitadelアカウントを使用します。
|
||||
TitleLinking: ユーザーリンクのアカウント選択
|
||||
DescriptionLinking: アカウントを選択して、外部ユーザーにリンクします。
|
||||
OtherUser: その他のユーザー
|
||||
|
||||
@@ -2,7 +2,7 @@ Login:
|
||||
Title: Добредојдовте назад!
|
||||
Description: Внесете ги вашите податоци за најава.
|
||||
TitleLinking: Најава за поврзување на корисник
|
||||
DescriptionLinking: Внесете ги вашите податоци за најава за да го поврзете вашиот надворешен корисник со корисник на ZITADEL.
|
||||
DescriptionLinking: Внесете ги вашите податоци за најава за да го поврзете вашиот надворешен корисник со корисник на Zitadel.
|
||||
LoginNameLabel: Корисничко име за најава
|
||||
UsernamePlaceHolder: корисничко име
|
||||
LoginnamePlaceHolder: username@domain
|
||||
@@ -20,7 +20,7 @@ LDAP:
|
||||
|
||||
SelectAccount:
|
||||
Title: Изберете корисничка сметка
|
||||
Description: Користете ја вашата ZITADEL корисничка сметка
|
||||
Description: Користете ја вашата Zitadel корисничка сметка
|
||||
TitleLinking: Изберете корисничка сметка за поврзување на корисник
|
||||
DescriptionLinking: Изберете ја вашата корисничка сметка за да ја поврзете со вашиот надворешен корисник.
|
||||
OtherUser: Друг корисник
|
||||
|
||||
@@ -2,7 +2,7 @@ Login:
|
||||
Title: Witaj z powrotem!
|
||||
Description: Wprowadź swoje dane logowania.
|
||||
TitleLinking: Logowanie do połączenia z użytkownikiem
|
||||
DescriptionLinking: Wprowadź swoje dane logowania, aby połączyć swojego zewnętrznego użytkownika z użytkownikiem ZITADEL.
|
||||
DescriptionLinking: Wprowadź swoje dane logowania, aby połączyć swojego zewnętrznego użytkownika z użytkownikiem Zitadel.
|
||||
LoginNameLabel: Nazwa użytkownika
|
||||
UsernamePlaceHolder: nazwa użytkownika
|
||||
LoginnamePlaceHolder: nazwa użytkownika@domena
|
||||
@@ -20,7 +20,7 @@ LDAP:
|
||||
|
||||
SelectAccount:
|
||||
Title: Wybierz konto
|
||||
Description: Użyj swojego konta ZITADEL
|
||||
Description: Użyj swojego konta Zitadel
|
||||
TitleLinking: Wybierz konto do połączenia z użytkownikiem
|
||||
DescriptionLinking: Wybierz swoje konto, aby połączyć je z twoim zewnętrznym użytkownikiem.
|
||||
OtherUser: Inny użytkownik
|
||||
|
||||
@@ -2,7 +2,7 @@ Login:
|
||||
Title: Bem-vindo de volta!
|
||||
Description: Insira seus dados de login.
|
||||
TitleLinking: Login para vinculação de usuário
|
||||
DescriptionLinking: Insira seus dados de login para vincular seu usuário externo a um usuário do ZITADEL.
|
||||
DescriptionLinking: Insira seus dados de login para vincular seu usuário externo a um usuário do Zitadel.
|
||||
LoginNameLabel: Nome de login
|
||||
UsernamePlaceHolder: nome de usuário
|
||||
LoginnamePlaceHolder: nome de usuário@domínio
|
||||
@@ -20,7 +20,7 @@ LDAP:
|
||||
|
||||
SelectAccount:
|
||||
Title: Selecionar conta
|
||||
Description: Use sua conta ZITADEL
|
||||
Description: Use sua conta Zitadel
|
||||
TitleLinking: Selecionar conta para vinculação de usuário
|
||||
DescriptionLinking: Selecione sua conta para vincular com seu usuário externo.
|
||||
OtherUser: Outro usuário
|
||||
|
||||
@@ -2,7 +2,7 @@ Login:
|
||||
Title: Добро пожаловать!
|
||||
Description: Введите свои данные для входа.
|
||||
TitleLinking: Вход для привязки пользователей
|
||||
DescriptionLinking: Введите данные для входа, чтобы привязать внешнего пользователя к учётной записи ZITADEL.
|
||||
DescriptionLinking: Введите данные для входа, чтобы привязать внешнего пользователя к учётной записи Zitadel.
|
||||
LoginNameLabel: Логин
|
||||
UsernamePlaceHolder: логин
|
||||
LoginnamePlaceHolder: username@domain
|
||||
|
||||
@@ -2,7 +2,7 @@ Login:
|
||||
Title: 欢迎回来!
|
||||
Description: 输入您的登录数据。
|
||||
TitleLinking: 登录以进行用户链接
|
||||
DescriptionLinking: 输入您的登录数据以将您的外部用户与 ZITADEL 用户关联。
|
||||
DescriptionLinking: 输入您的登录数据以将您的外部用户与 Zitadel 用户关联。
|
||||
LoginNameLabel: 登录名
|
||||
UsernamePlaceHolder: 用户名
|
||||
LoginnamePlaceHolder: username@domain
|
||||
@@ -20,7 +20,7 @@ LDAP:
|
||||
|
||||
SelectAccount:
|
||||
Title: 选择账户
|
||||
Description: 使用您的 ZITADEL 帐户
|
||||
Description: 使用您的 Zitadel 帐户
|
||||
TitleLinking: 选择用于用户链接的帐户
|
||||
DescriptionLinking: 选择您的帐户以与您的外部用户关联。
|
||||
OtherUser: 其他用户
|
||||
|
||||
Reference in New Issue
Block a user