Univeral Login
API_BASE_URL: https://id.fsl.com
Sign in with FSL ID
It is a universal login solution to be integrated into your products. The solution is built upon OAuth 2.0. The integration experience is pretty much similar to OAuth 2.0.
Get Authorization Code
Get
/api/account/oauth/authorize
Get the authorization code to start with.
Parameters
Name | Mandatory? | Description |
---|---|---|
| Y | Grant type. Use the value " |
| Y | The unique |
| Y | The redirect URL address after authorization success. The |
| N | Grant Scope. Refer to the definitions for more details. Only request |
| N | A developer-specified parameter to validate or bring special information. The parameter will be brought to the redirect URL. |
Returns
Authorization code which will be expired in 5 minutes.
Request Example
Response
After the FSL ID verification and scope grant success, the system will redirect to the redirect URL with the authorization code
and state
parameter.
Get access token and refresh token
POST
/api/account/oauth/token
Get access token and refresh token
Header
Name | Value |
---|---|
Content-Type |
|
Parameters
Name | Mandatory? | Description |
---|---|---|
| Y | Authorization code. |
| Y | Should be "authorization_code". |
| Y | The unique |
| Y | The |
| N | The token in json will be |
Request Example
Response
Get access token without Authorization Code
Get
/api/account/oauth/authorize
Get the access token directly from a server-less app.
Parameters
Name | Mandatory? | Description |
---|---|---|
| Y | Must be " |
| Y | The unique |
| Y | The redirect URL address after authorization success. The |
| N | Grant Scope. Refer to the definitions for more details. Only grant |
| N | A developer-specified parameter to validate or bring special information. The parameter will be brought to the redirect URL. |
Returns
access token which will expire in 1 day.
Request Example
Response
Get User Profiles
Get
/api/account/party/user
Get the user profiles under grant scope
Header
Name | Value |
---|---|
Content-Type |
|
Authorization |
|
Request Example
Response
Last updated