GET /auth/oauth/{provider}/callback

处理OAuth授权回调,获取用户信息并创建会话

身份认证 None application/json

请求参数

名称位置类型必填默认值示例约束描述
provider path string 是 OAuth鎻愪緵鑰?
code query string 是 鎺堟潈鐮?
state query string 是 状态参数

响应

引用的 Schema

service-identity/internal/handler/dto.OAuthCallbackResponse

OAuth/SSO回调响应

字段类型必填示例约束描述
access_token string 否 eyJhbGciOi... Access token
challenge_token string 否 chg_abc123... MFA challenge token
enrolled_mfa_methods array of

string

否 User's enrolled MFA methods
expires_in integer 否 1800 Expiration time
is_new_user boolean 否 False Is new user
link_required boolean 否 False LinkRequired 现有账号与本次第三方身份未绑定:需登录本地账号后显式绑定。 为 true 时不携带任何令牌。
membership_status string 否 pending MembershipStatus 新注册待审批(WS-A A4);pending 时不携带令牌。
mfa_check_reason string 否 new_device MFA check reason
provider string 否 github Provider
refresh_token string 否 eyJhbGciOi... Refresh token
required_mfa_methods array of

string

否 MFA recommended methods
requires_mfa boolean 否 False Requires MFA
risk_level string 否 low Risk level
state string 否 random-state State
token_type string 否 Bearer Token type