fix(系统设置): 修复认证设置提示显示问题

--bug=1045225 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001045225
This commit is contained in:
guoyuqi 2024-08-19 14:57:26 +08:00 committed by 刘瑞斌
parent f7c86b7f23
commit 3f332ec42d
3 changed files with 12 additions and 10 deletions

View File

@ -163,7 +163,7 @@
:max-length="255" :max-length="255"
:placeholder=" :placeholder="
t('system.config.auth.commonUrlPlaceholder', { t('system.config.auth.commonUrlPlaceholder', {
url: 'http://<meteresphere-endpoint>/sso/callback/cas/suthld', url: 'http://<meteresphere-endpoint>/sso/callback/cas/{authId}',
}) })
" "
allow-clear allow-clear
@ -286,7 +286,7 @@
allow-clear allow-clear
></a-input-password> ></a-input-password>
</a-form-item> </a-form-item>
<a-form-item <!-- <a-form-item
:label="t('system.config.auth.logoutSessionUrl')" :label="t('system.config.auth.logoutSessionUrl')"
field="configuration.logoutUrl" field="configuration.logoutUrl"
asterisk-position="end" asterisk-position="end"
@ -303,7 +303,7 @@
" "
allow-clear allow-clear
></a-input> ></a-input>
</a-form-item> </a-form-item>-->
<!-- <a-form-item :label="t('system.config.auth.loginUrl')" field="configuration.loginUrl" asterisk-position="end"> <!-- <a-form-item :label="t('system.config.auth.loginUrl')" field="configuration.loginUrl" asterisk-position="end">
<a-input <a-input
v-model:model-value="activeAuthForm.configuration.loginUrl" v-model:model-value="activeAuthForm.configuration.loginUrl"
@ -327,7 +327,7 @@
:max-length="255" :max-length="255"
:placeholder=" :placeholder="
t('system.config.auth.commonUrlPlaceholder', { t('system.config.auth.commonUrlPlaceholder', {
url: 'http://<keyclock>auth/realms/<metersphere>/protocol/openid-connect/auth', url: 'http://<meteresphere-endpoint>/login/oauth/authorize',
}) })
" "
allow-clear allow-clear
@ -345,7 +345,7 @@
:max-length="255" :max-length="255"
:placeholder=" :placeholder="
t('system.config.auth.commonUrlPlaceholder', { t('system.config.auth.commonUrlPlaceholder', {
url: 'http://<keyclock>auth/realms/<metersphere>/protocol/openid-connect/token', url: 'https://<meteresphere-endpoint>/login/oauth/access_token',
}) })
" "
allow-clear allow-clear
@ -363,7 +363,7 @@
:max-length="255" :max-length="255"
:placeholder=" :placeholder="
t('system.config.auth.commonUrlPlaceholder', { t('system.config.auth.commonUrlPlaceholder', {
url: 'http://<keyclock>auth/realms/<metersphere>/protocol/openid-connect/userinfo', url: 'https://<meteresphere-endpoint>/user',
}) })
" "
allow-clear allow-clear
@ -381,7 +381,7 @@
:max-length="255" :max-length="255"
:placeholder=" :placeholder="
t('system.config.auth.commonUrlPlaceholder', { t('system.config.auth.commonUrlPlaceholder', {
url: 'http://<meteresphere-endpoint>/sso/callback/cas/suthld', url: 'http://<meteresphere-endpoint>/sso/callback/oauth2',
}) })
" "
allow-clear allow-clear
@ -411,7 +411,7 @@
<a-input-password <a-input-password
v-model:model-value="activeAuthForm.configuration.secret" v-model:model-value="activeAuthForm.configuration.secret"
:max-length="255" :max-length="255"
:placeholder="t('system.config.auth.clientSecretPlaceholder')" :placeholder="t('system.config.auth.oauth.clientSecretPlaceholder')"
allow-clear allow-clear
></a-input-password> ></a-input-password>
</a-form-item> </a-form-item>
@ -429,7 +429,7 @@
allow-clear allow-clear
></a-input> ></a-input>
</a-form-item> </a-form-item>
<a-form-item <!-- <a-form-item
:label="t('system.config.auth.logoutSessionUrl')" :label="t('system.config.auth.logoutSessionUrl')"
field="configuration.logoutUrl" field="configuration.logoutUrl"
asterisk-position="end" asterisk-position="end"
@ -444,7 +444,7 @@
" "
allow-clear allow-clear
></a-input> ></a-input>
</a-form-item> </a-form-item>-->
<a-form-item :label="t('system.config.auth.linkRange')" field="configuration.scope" asterisk-position="end"> <a-form-item :label="t('system.config.auth.linkRange')" field="configuration.scope" asterisk-position="end">
<a-input <a-input
v-model:model-value="activeAuthForm.configuration.scope" v-model:model-value="activeAuthForm.configuration.scope"

View File

@ -153,6 +153,7 @@ export default {
'system.config.auth.clientSecret': 'Client secret', 'system.config.auth.clientSecret': 'Client secret',
'system.config.auth.clientSecretRequired': 'Client secret cannot be empty', 'system.config.auth.clientSecretRequired': 'Client secret cannot be empty',
'system.config.auth.clientSecretPlaceholder': 'OIDC client secret', 'system.config.auth.clientSecretPlaceholder': 'OIDC client secret',
'system.config.auth.oauth.clientSecretPlaceholder': 'OAuth2.0 client secret',
'system.config.auth.logoutSessionUrl': 'Logout session address', 'system.config.auth.logoutSessionUrl': 'Logout session address',
'system.config.auth.logoutSessionUrlRequired': 'Logout session address cannot be empty', 'system.config.auth.logoutSessionUrlRequired': 'Logout session address cannot be empty',
'system.config.auth.password': 'Password', 'system.config.auth.password': 'Password',

View File

@ -149,6 +149,7 @@ export default {
'system.config.auth.clientSecret': '客户端密钥', 'system.config.auth.clientSecret': '客户端密钥',
'system.config.auth.clientSecretRequired': '客户端密钥不能为空', 'system.config.auth.clientSecretRequired': '客户端密钥不能为空',
'system.config.auth.clientSecretPlaceholder': 'OIDC client secret', 'system.config.auth.clientSecretPlaceholder': 'OIDC client secret',
'system.config.auth.oauth.clientSecretPlaceholder': 'OAuth2.0 client secret',
'system.config.auth.logoutSessionUrl': '注销会话端地址', 'system.config.auth.logoutSessionUrl': '注销会话端地址',
'system.config.auth.logoutSessionUrlRequired': '注销会话端地址不能为空', 'system.config.auth.logoutSessionUrlRequired': '注销会话端地址不能为空',
'system.config.auth.password': '密码', 'system.config.auth.password': '密码',