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
response_type
Y
Grant type. Use the value "code
" to get an authorization code.
appkey
Y
The unique appkey
for your App.
redirect_uri
Y
The redirect URL address after authorization success. The authorization code
with be returned to the redirect URL.
The redirect_uri
should be url-encoded.
scope
N
state
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
Content-Type
application/x-www-form-urlencoded
Parameters
authorization_code
refresh_token
Y
Provide either Authorization code or refresh_token
grant_type
Y
Should be "authorization_code" or "refresh_token".
appkey
Y
The unique appkey
for your App.
appsecret
Y
The appsecret
for your App.
redirect_uri
N
The token in json will be POST
to redirect_uri
if provided.
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
response_type
Y
Must be "token
" to get an access token.
appkey
Y
The unique appkey
for your App.
redirect_uri
Y
The redirect URL address after authorization success. The access token
with be returned to the redirect URL.
The redirect_uri
should be url-encoded.
scope
N
state
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
Content-Type
application/json
Authorization
Bearer <access token>
Request Example
Response
Last updated