feat: support wecom sso (#3518)

* feat: support wecom sso

* chore: remove unused wecom js-sdk dependency
This commit is contained in:
Finley Ge
2025-01-03 11:32:56 +08:00
committed by archer
parent 8b2be89350
commit c8f60b47d0
6 changed files with 79 additions and 35 deletions

View File

@@ -73,6 +73,11 @@ export type FastGPTFeConfigsType = {
google?: string;
wechat?: string;
dingtalk?: string;
wecom?: {
corpid?: string;
agentid?: string;
secret?: string;
};
microsoft?: {
clientId?: string;
tenantId?: string;

View File

@@ -17,5 +17,6 @@ export enum OAuthEnum {
wechat = 'wechat',
microsoft = 'microsoft',
dingtalk = 'dingtalk',
wecom = 'wecom',
sso = 'sso'
}

View File

@@ -0,0 +1,3 @@
export function isWecomTerminal() {
return /wxwork/i.test(navigator.userAgent);
}

View File

@@ -16,5 +16,6 @@
"register": "注册账号",
"root_password_placeholder": "root 用户密码为环境变量 DEFAULT_ROOT_PSW 的值",
"terms": "服务协议",
"use_root_login": "使用 root 用户登录"
"use_root_login": "使用 root 用户登录",
"wecom": "企业微信"
}