From 135da3e8aa006612c1bbea6b821e6488a747b967 Mon Sep 17 00:00:00 2001 From: jiangweidong Date: Wed, 30 Aug 2023 13:19:24 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20cas=E5=B1=9E=E6=80=A7=E6=98=A0=E5=B0=84?= =?UTF-8?q?=E6=8F=90=E9=86=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/i18n/langs/en.json | 1 + src/i18n/langs/ja.json | 1 + src/i18n/langs/zh.json | 1 + src/views/settings/Auth/CAS.vue | 1 + 4 files changed, 4 insertions(+) diff --git a/src/i18n/langs/en.json b/src/i18n/langs/en.json index c717067c6..d1f93dbf0 100644 --- a/src/i18n/langs/en.json +++ b/src/i18n/langs/en.json @@ -1648,6 +1648,7 @@ "LDAPUser": "LDAP User", "InsecureCommandAlert": "Insecure command alert", "helpText": { + "UserAttr": "If the user attribute contains `uid`, change it to `cas:user`", "TempPassword": "For a while, there is a period of 300 seconds, failure immediately after use", "ApiKeyList": "The API key is used to sign the request header. The header of each request is different. Please refer to the usage documentation", "ConnectionTokenList": "The connection token is a kind of authentication information that combines authentication and connection assets. It allows users to log in to assets with one click. Currently supported components include: KoKo, Lion, Magnus, Razor, etc.", diff --git a/src/i18n/langs/ja.json b/src/i18n/langs/ja.json index b4ab63593..025d1e112 100644 --- a/src/i18n/langs/ja.json +++ b/src/i18n/langs/ja.json @@ -1654,6 +1654,7 @@ "LDAPServerInfo": "LDAPサーバー", "LDAPUser": "LDAPユーザー", "helpText": { + "UserAttr": "ユーザ属性で `uid` を含むものは `cas:user` に変更する必要があります。", "TempPassword": "一時パスワードの有効期間は300秒で、使用後すぐに失効します", "ApiKeyList": "Api keyを使用してリクエストヘッダに署名します。リクエストのヘッダごとに異なります。使用ドキュメントを参照してください", "ConnectionTokenList": "接続トークンは、認証アセットと接続アセットを組み合わせた一種の認証情報であり、ユーザーはワンクリックでアセットにログインできます。現在サポートされているコンポーネントには、KoKo、Lion、Magnus、Razorなどがあります。", diff --git a/src/i18n/langs/zh.json b/src/i18n/langs/zh.json index f52127525..7d331828a 100644 --- a/src/i18n/langs/zh.json +++ b/src/i18n/langs/zh.json @@ -1652,6 +1652,7 @@ "LDAPServerInfo": "LDAP 服务器", "LDAPUser": "LDAP 用户", "helpText": { + "UserAttr": "用户属性中包含 `uid` 的需要更换为 `cas:user` ", "TempPassword": "临时密码有效期为 300 秒,使用后立刻失效", "ApiKeyList": "使用 Api key 签名请求头进行认证,每个请求的头部是不一样的, 相对于 Token 方式,更加安全,请查阅文档使用", "ConnectionTokenList": "连接令牌是将身份验证和连接资产结合起来使用的一种认证信息,支持用户一键登录到资产,目前支持的组件包括:KoKo、Lion、Magnus、Razor 等", diff --git a/src/views/settings/Auth/CAS.vue b/src/views/settings/Auth/CAS.vue index 6553e9c6a..a657a9872 100644 --- a/src/views/settings/Auth/CAS.vue +++ b/src/views/settings/Auth/CAS.vue @@ -32,6 +32,7 @@ export default { CAS_RENAME_ATTRIBUTES: { component: JsonEditor, label: this.$t('setting.authUserAttrMap'), + helpText: this.$t('setting.helpText.UserAttr'), rules: [JsonRequiredUserNameMapped] } },