Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: update computed redirect url value (#4771)
boojack446ea2bc9dd0
diff --git a/frontend/src/components/IdentityProviderCreateForm.vue b/frontend/src/components/IdentityProviderCreateForm.vueindex 0062485ddd..b0d2188188 100644--- a/frontend/src/components/IdentityProviderCreateForm.vue+++ b/frontend/src/components/IdentityProviderCreateForm.vue@@ -655,9 +655,17 @@ const identityProviderTypeList = computed(() => {});const redirectUrl = computed(() => {- return `${- useActuatorStore().serverInfo?.externalUrl || window.origin- }/oauth/callback`;+ if (state.type === IdentityProviderType.OAUTH2) {+ return `${+ useActuatorStore().serverInfo?.externalUrl || window.origin+ }/oauth/callback`;+ } else if (state.type === IdentityProviderType.OIDC) {+ return `${+ useActuatorStore().serverInfo?.externalUrl || window.origin+ }/oidc/callback`;+ } else {+ throw new Error(`identity provider type ${state.type} is invalid`);+ }});const isCreating = computed(() => {diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.jsonindex 32f1c803cd..d31eeb44ed 100644--- a/frontend/src/locales/en-US.json+++ b/frontend/src/locales/en-US.json@@ -420,7 +420,7 @@"form": {"type": "Type","learn-more-with-user-doc": "Learn more about the configuration",- "redirect-url": "Authorization redirect url",+ "redirect-url": "Authorization redirect URL","redirect-url-description": "It will be used to fill in the appropriate field in the identity provider application form.","use-template": "Use template","select-template": "Select template",@@ -446,7 +446,7 @@"display-name": "Bytebase user display name","email": "Bytebase user email"},- "copy-redirect-url": "Redirect URL copied to clipboard. Paste to the corresponding field on the OAuth application form."+ "copy-redirect-url": "Redirect URL copied to clipboard."},"general": {"workspace": {diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.jsonindex 7584125d42..f2e66d0030 100644--- a/frontend/src/locales/zh-CN.json+++ b/frontend/src/locales/zh-CN.json@@ -443,7 +443,7 @@"display-name": "Bytebase 用户的昵称","email": "Bytebase 用户的 Email"},- "copy-redirect-url": "Redirect URL 已复制到剪切板,请粘贴至 OAuth 应用的对应字段内。"+ "copy-redirect-url": "Redirect URL 已复制到剪切板。"},"general": {"workspace": {