GET /public/auth-config/by-slug/{slug}

根据租户名称/slug获取公开的认证配置,无需认证

身份认证 None application/json

请求参数

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

响应

引用的 Schema

service-core/base/dto.DataResponse-service-identity/internal/handler/dto/PublicAuthConfigResponse

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

service-identity/internal/handler/dto.BrandingInfo

登录页品牌定制(Logo/主色/自定义CSS/隐私条款URL)

字段类型必填示例约束描述
company_name string 否 My Company
custom_css string 否 .login-btn { border-radius: 12px; }
favicon_url string 否 https://cdn.example.com/favicon.ico
login_page_description string 否 Sign in to your account
login_page_title string 否 Welcome
logo_url string 否 https://cdn.example.com/logo.png
primary_color string 否 #3b82f6
privacy_policy_url string 否 https://example.com/privacy
secondary_color string 否 #10b981
terms_of_service_url string 否 https://example.com/terms

service-identity/internal/handler/dto.ComplianceProfileInfo

租户选中的合规标准信息

字段类型必填示例约束描述
resolved_at string 否 2026-06-15T10:00:00Z
standards array of

string

否 ['["nist_sp800_63b_v4"', '"dengbao_l3"]']

service-identity/internal/handler/dto.ComplianceWarningItem

当前配置与合规标准之间的差距

字段类型必填示例约束描述
current object 否 8
description string 否 NIST v4 AAL2 requires 15 characters
parameter string 否 password_min_length_sfa
required object 否 15
severity string 否 high

service-identity/internal/handler/dto.PasswordPolicyResponse

密码策略配置

字段类型必填示例约束描述
captcha_enabled boolean 否 是否启用CAPTCHA验证
change_cooldown_minutes integer 否 0 密码修改冷却时间
check_breached_passwords boolean 否 是否检测已泄露密码
expiry_days integer 否 90 密码过期天数
force_change_on_first_login boolean 否 首次登录强制修改密码
grace_period_days integer 否 7 过期宽限天数
history_count integer 否 5 密码历史保留数量
identity_threshold integer 否 登录限速账号阈值
ip_threshold integer 否 登录限速IP阈值
login_methods array of

string

否
max_length integer 否 128 最大长度
min_length integer 否 8 最小长度
oauth_providers array of

string

否
password_transmission string 否 密码传输方式
pepper_enabled boolean 否 US-P13: 服务端Pepper加密启用
require_digit boolean 否 True 需要数字
require_lower boolean 否 True 需要小写字母
require_special boolean 否 True 需要特殊字符
require_upper boolean 否 True 需要大写字母
sso_providers array of

string

否
unicode_allowed boolean 否 是否允许Unicode密码(NFC标准化)

service-identity/internal/handler/dto.PublicAuthConfigResponse

公开认证配置,包含租户基本信息、密码策略、品牌定制

字段类型必填示例约束描述
branding service-identity/internal/handler/dto.BrandingInfo 否
breach_check_enabled boolean 否
captcha_enabled boolean 否
captcha_provider string 否
compliance_profile service-identity/internal/handler/dto.ComplianceProfileInfo 否
compliance_warnings array of

参见 service-identity/internal/handler/dto.ComplianceWarningItem

否
cross_tenant_switch_enabled boolean 否
device_fingerprint_enabled boolean 否
display_name string 否 My Tenant
identity_threshold integer 否
ip_threshold integer 否
issuer string 否 https://api.autional.cn/acme OIDC issuer(按根域+租户 slug 派生;18 §0)
login_methods array of

string

否
magic_link_enabled boolean 否
max_concurrent_sessions integer 否
membership_approval string 否
oauth_client_id string 否 app-01KV1ZCSJ5ZJ8G78B4TDG398NK OAuthClientID 租户**门户**客户端的 client_id(kind=portal)。 兼容保留:历史接入文档/SDK 曾把它当作「应用 appId」读取,导致应用回调必然登记失败 (门户客户端只登记平台门户域)。语义清晰的新名字见 PortalOAuthClientID,两者同值。
oauth_providers array of

string

否
passkey_enabled boolean 否
password_policy service-identity/internal/handler/dto.PasswordPolicyResponse 否
pepper_enabled boolean 否
portal_oauth_client_id string 否 app-01KV1ZCSJ5ZJ8G78B4TDG398NK PortalOAuthClientID 与 OAuthClientID 同值,仅用于表达「这是门户客户端,不是应用 appId」。 第三方应用应使用自有 OAuth 客户端(管理后台 oauth-clients 页登记后签发的 client_id)。
silent_challenge_enabled boolean 否
sso_providers array of

string

否
tenant_id string 否 tnt_xyz789
tenant_name string 否 my-tenant
transmission_nonce string 否
transmission_nonce_expires_at string 否
transmission_public_key string 否
transmission_public_key_id string 否