App SSO (Single Sign-On)
Enterprise internal applications developed on Fxiaoke can use this method to directly log in without entering account credentials.
# Flow Diagram

# Obtain Code
Refer to the Obtaining Code section in OAuth Authorization.
# Retrieve User Information via Code
# Request Specification
Method: POST with application/json
Endpoint: https://${cloud-domain}/oauth2.0/getUserInfoByCode?thirdTraceId=${Random String}
# Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| appId | String | Yes | Self-built application AppId |
| appSecret | String | Yes | Self-built application APPSecret |
| code | String | Yes | Authorization code obtained in previous step |
| authType | Integer | No | Authentication type. Default: 0 (OpenAPI). If set to 1 (WeChat Mini Program), returns sessionKey additionally |
# Request Example
{
"appId": "FSAID_xxxxx",
"appSecret": "xxxxxxxxxxxxxxxx",
"code": "authorization_code"
}
# Response Parameters
| Parameter | Required | Description |
|---|---|---|
| data | Yes | User's openUserId |
# Response Example
{
"errorCode": 0,
"errorMessage": "success",
"data": "openUserId"
}