mirror of
https://github.com/dataease/dataease.git
synced 2025-02-24 11:32:57 +08:00
perf(X-Pack): 安全设置页面
This commit is contained in:
parent
7d0a3fcbfc
commit
9176f5680c
@ -4148,5 +4148,18 @@ export default {
|
||||
},
|
||||
security: {
|
||||
title: '安全设置'
|
||||
},
|
||||
setting_mfa: {
|
||||
title: 'MFA 设置',
|
||||
status: '全局启用 MFA 认证',
|
||||
platformEnable: '第三方认证开启 MFA',
|
||||
exp: 'MFA 校验有效期',
|
||||
otpName: 'OPT 扫描后的名称',
|
||||
rate: 'OTP 延迟有效次数',
|
||||
status_0: '未启用',
|
||||
status_1: '所有用户',
|
||||
status_2: '仅系统管理员',
|
||||
platform_tips: '第三方登录方式包括:OIDC、CAS',
|
||||
exp_tips: '单位:秒,目前仅在查看账号密码校验 MFA 时生效'
|
||||
}
|
||||
}
|
||||
|
2
de-xpack
2
de-xpack
@ -1 +1 @@
|
||||
Subproject commit ceef8f4f12864df345954da42bf6236cf392331f
|
||||
Subproject commit a17656f4262e0cd59a740151201b1c5df32cf830
|
@ -2,6 +2,7 @@ package io.dataease.api.permissions.setting.api;
|
||||
|
||||
import com.github.xiaoymin.knife4j.annotations.ApiSupport;
|
||||
import io.dataease.api.permissions.setting.vo.PerSettingItemVO;
|
||||
import io.dataease.license.config.XpackResource;
|
||||
import io.swagger.v3.oas.annotations.Hidden;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
@ -14,6 +15,7 @@ import java.util.List;
|
||||
|
||||
@Tag(name = "认证相关设置")
|
||||
@ApiSupport(order = 882)
|
||||
@XpackResource
|
||||
public interface PerSettingApi {
|
||||
|
||||
@Operation(summary = "查询设置")
|
||||
@ -27,4 +29,12 @@ public interface PerSettingApi {
|
||||
@Hidden
|
||||
@GetMapping("/baisc/single/{key}")
|
||||
String singleValue(@PathVariable("key") String key);
|
||||
|
||||
@Operation(summary = "查询FMA设置")
|
||||
@GetMapping("/mfa/query")
|
||||
List<PerSettingItemVO> mfaSetting();
|
||||
|
||||
@Operation(summary = "保存FMA设置")
|
||||
@PostMapping("/mfa/save")
|
||||
void saveMfa(@RequestBody List<PerSettingItemVO> settings);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user