GET /internal/tenant/{tenant_id}/auth-policy

供其他服务内部调用,获取租户的认证策略配置

租户服务 - 内部接口 None application/json

请求参数

名称位置类型必填默认值示例约束描述
tenant_id path string 是 租户ID

响应

引用的 Schema

dto.DataResponse-service-tenant/internal/handler/dto/AuthPolicyResponse

字段类型必填示例约束描述
code integer 否
data service-tenant/internal/handler/dto.AuthPolicyResponse 否
message string 否
timestamp string 否

service-core/base/dto.SimpleResponse

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

service-tenant/internal/handler/dto.AuthPolicyResponse

字段类型必填示例约束描述
captcha_enabled boolean 否
change_cooldown_minutes integer 否
check_breached_passwords boolean 否
cross_tenant_switch_enabled boolean 否
device_fingerprint_enabled boolean 否
device_trust_duration_hours integer 否
expiry_days integer 否
force_change_on_first_login boolean 否
grace_period_days integer 否
history_count integer 否
lockout_attempts integer 否
lockout_duration_minutes integer 否
login_methods string 否
magic_link_enabled boolean 否
max_concurrent_sessions integer 否
max_devices_per_user integer 否
max_length integer 否
mfa_enabled boolean 否
mfa_enforce_for_all boolean 否
mfa_enforce_for_high_risk boolean 否
mfa_enforce_for_new_device boolean 否
mfa_methods string 否
mfa_preferred_methods string 否
mfa_required_user_role string 否
min_length integer 否
oauth_providers string 否
otp_code_length integer 否
otp_email_ttl_minutes integer 否
otp_max_attempts integer 否
otp_sms_ttl_minutes integer 否
passkey_enabled boolean 否
passkey_max_credentials integer 否
passkey_user_verification string 否
password_transmission string 否
pepper_enabled boolean 否
refresh_token_rotation boolean 否
remember_me_days integer 否
require_digits boolean 否
require_lowercase boolean 否
require_special_chars boolean 否
require_uppercase boolean 否
session_bind_to_device boolean 否
session_idle_timeout string 否
session_timeout string 否
silent_challenge_enabled boolean 否
sso_providers string 否
tenant_id string 否
web3_enabled boolean 否