/public/auth-config/{tenant_id}
根据租户ID获取公开的认证配置(密码策略、租户信息),无需认证
Request Parameters
| Name | In | Type | Required | Default | Example | Constraints | Description |
|---|---|---|---|---|---|---|---|
tenant_id |
path |
string |
Yes | 租户ID |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | 认证配置 | gitee_com_linmes_authms_base_dto.DataResponse-dto_PublicAuthConfigResponse |
Referenced Schemas
dto.BrandingInfo
登录页品牌定制(Logo/主色/自定义CSS/隐私条款URL)
| Field | Type | Required | Example | Constraints | Description |
|---|---|---|---|---|---|
company_name |
string |
No | My Company |
||
custom_css |
string |
No | .login-btn { border-radius: 12px; } |
||
favicon_url |
string |
No | https://cdn.example.com/favicon.ico |
||
login_page_description |
string |
No | Sign in to your account |
||
login_page_title |
string |
No | Welcome |
||
logo_url |
string |
No | https://cdn.example.com/logo.png |
||
primary_color |
string |
No | #3b82f6 |
||
privacy_policy_url |
string |
No | https://example.com/privacy |
||
secondary_color |
string |
No | #10b981 |
||
terms_of_service_url |
string |
No | https://example.com/terms |
dto.PasswordPolicyResponse
密码策略配置
| Field | Type | Required | Example | Constraints | Description |
|---|---|---|---|---|---|
captcha_enabled |
boolean |
No | 是否启用CAPTCHA验证 | ||
change_cooldown_minutes |
integer |
No | 0 |
密码修改冷却时间 | |
expiry_days |
integer |
No | 90 |
密码过期天数 | |
grace_period_days |
integer |
No | 7 |
过期宽限天数 | |
history_count |
integer |
No | 5 |
密码历史保留数量 | |
login_methods |
array of string |
No | |||
max_length |
integer |
No | 128 |
最大长度 | |
min_length |
integer |
No | 8 |
最小长度 | |
oauth_providers |
array of string |
No | |||
password_transmission |
string |
No | 密码传输方式 | ||
pepper_enabled |
boolean |
No | US-P13: 服务端Pepper加密启用 | ||
require_digit |
boolean |
No | True |
需要数字 | |
require_lower |
boolean |
No | True |
需要小写字母 | |
require_special |
boolean |
No | True |
需要特殊字符 | |
require_upper |
boolean |
No | True |
需要大写字母 | |
sso_providers |
array of string |
No | |||
unicode_allowed |
boolean |
No | 是否允许Unicode密码(NFC标准化) |
dto.PublicAuthConfigResponse
公开认证配置,包含租户基本信息、密码策略、品牌定制
| Field | Type | Required | Example | Constraints | Description |
|---|---|---|---|---|---|
branding |
dto.BrandingInfo |
No | |||
breach_check_enabled |
boolean |
No | |||
captcha_enabled |
boolean |
No | |||
captcha_provider |
string |
No | |||
cross_tenant_switch_enabled |
boolean |
No | |||
device_fingerprint_enabled |
boolean |
No | |||
display_name |
string |
No | My Tenant |
||
login_methods |
array of string |
No | |||
magic_link_enabled |
boolean |
No | |||
max_concurrent_sessions |
integer |
No | |||
membership_approval |
string |
No | |||
oauth_client_id |
string |
No | app-01KV1ZCSJ5ZJ8G78B4TDG398NK |
||
oauth_providers |
array of string |
No | |||
passkey_enabled |
boolean |
No | |||
password_policy |
dto.PasswordPolicyResponse |
No | |||
pepper_enabled |
boolean |
No | |||
silent_challenge_enabled |
boolean |
No | |||
sso_providers |
array of string |
No | |||
tenant_id |
string |
No | tnt_xyz789 |
||
tenant_name |
string |
No | my-tenant |
||
transmission_nonce |
string |
No | |||
transmission_nonce_expires_at |
string |
No | |||
transmission_public_key |
string |
No | |||
transmission_public_key_id |
string |
No |
gitee_com_linmes_authms_base_dto.DataResponse-dto_PublicAuthConfigResponse
| Field | Type | Required | Example | Constraints | Description |
|---|---|---|---|---|---|
code |
integer |
No | |||
data |
dto.PublicAuthConfigResponse |
No | |||
message |
string |
No | |||
timestamp |
string |
No |