Fxiaoke Developer Manual Fxiaoke Developer Manual
  • APL Development Manual
  • PWC Development Manual
  • OpenAPI Documentation
  • Quick Start
  • API Authorization
  • API Basics
  • OpenAPI
  • SSO Integration
  • Client Development
  • FAQ
  • OpenApi Version V1 (opens new window)
  • 简体中文
  • English
  • Quick Start
  • API Authorization
  • API Basics
  • OpenAPI
  • SSO Integration
  • Client Development
  • FAQ
  • OpenApi Version V1 (opens new window)
  • 简体中文
  • English
  • Quick Start

  • API Authorization

  • API Basics

  • OpenAPI

  • SSO Integration

    • Fxiaoke SSO
    • App SSO
    • Client Development

    • FAQ

    Table of Contents

    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

    App SSO 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"
    }
    
    Fxiaoke SSO
    Client Development

    ← Fxiaoke SSO Client Development →

    • 跟随系统
    • 浅色模式
    • 深色模式
    • 阅读模式