SSO 登录入口:校验 issuer 受信(默认空=拒)+ 强制 HTTPS(生产)+ 发现文档 issuer 严格一致 + 禁任意 JWKS 覆盖 → 302 到 IdP 授权 URL(state/nonce/PKCE code_verifier 入 Redis TTL 10min 一次性;URL 携 code_challenge + code_challenge_method=S256);Cache-Control: no-store
GET
/v1/auth/sso/{orgId}/start
Responses
Section titled “Responses”重定向到 IdP authorization_endpoint(PKCE S256)
Idp_untrusted(issuer 未受信/停用/发现文档不一致/JWKS 覆盖非法/HTTPS 未满足)/ forbidden(SSO 未配置/停用)
Media typeapplication/json
object
error
required
object
code
required
错误码注册表单源派生(src/http/errors.ts ERROR_CODES;码稳定,消费方按码翻译)
string
message
required
string
requestId
required
string
detail
object
Example
{ "error": { "code": "adjudicator_not_authorized" }}Not_found
Media typeapplication/json
object
error
required
object
code
required
错误码注册表单源派生(src/http/errors.ts ERROR_CODES;码稳定,消费方按码翻译)
string
message
required
string
requestId
required
string
detail
object
Example
{ "error": { "code": "adjudicator_not_authorized" }}本文是否有帮助?
感谢反馈,我们会持续改进这篇文章。