feat: support wecom sso (#3518)
* feat: support wecom sso * chore: remove unused wecom js-sdk dependency
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -17,5 +17,6 @@ export enum OAuthEnum {
|
||||
wechat = 'wechat',
|
||||
microsoft = 'microsoft',
|
||||
dingtalk = 'dingtalk',
|
||||
wecom = 'wecom',
|
||||
sso = 'sso'
|
||||
}
|
||||
|
||||
3
packages/service/support/user/wecom.ts
Normal file
3
packages/service/support/user/wecom.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export function isWecomTerminal() {
|
||||
return /wxwork/i.test(navigator.userAgent);
|
||||
}
|
||||
@@ -16,5 +16,6 @@
|
||||
"register": "注册账号",
|
||||
"root_password_placeholder": "root 用户密码为环境变量 DEFAULT_ROOT_PSW 的值",
|
||||
"terms": "服务协议",
|
||||
"use_root_login": "使用 root 用户登录"
|
||||
"use_root_login": "使用 root 用户登录",
|
||||
"wecom": "企业微信"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user