PUT /admin/security/auth-config

运行时更新认证安全配置,包含密码策略和登录安全设置

安全策略 `bearerAuth` application/json

请求体

Schema: service-identity/internal/handler/dto.UpdateAuthConfigRequest

字段类型必填示例约束描述
breach_check_enabled boolean 否
captcha_enabled boolean 否
change_cooldown_minutes integer 否 密码修改冷却时间(分钟)
cross_tenant_switch_enabled boolean 否
device_fingerprint_enabled boolean 否
expiry_days integer 否 密码过期天数
grace_period_days integer 否 过期宽限天数
history_count integer 否 密码历史保留数量
identity_threshold integer 否
ip_threshold integer 否
lock_duration_sec integer 否 账户锁定时间(秒)
login_methods array of

string

否
magic_link_enabled boolean 否
max_length integer 否 最大长度
max_login_attempts integer 否 最大登录失败次数
membership_approval string 否
min_length integer 否 最小长度
oauth_providers array of

string

否
passkey_enabled boolean 否
password_transmission string 否 密码传输方式
pepper_enabled boolean 否
require_digit boolean 否 需要数字
require_lower boolean 否 需要小写字母
require_special boolean 否 需要特殊字符
require_upper boolean 否 需要大写字母
silent_challenge_enabled boolean 否
sso_providers array of

string

否
unicode_allowed boolean 否

响应

状态描述Schema
200更新成功service-core/base/dto.SimpleResponse

引用的 Schema

service-core/base/dto.SimpleResponse

字段类型必填示例约束描述
code integer 否
message string 否
timestamp string 否