Univeral Login
Last updated
Last updated
It is a universal login solution to be integrated into your products. The solution is built upon . The integration experience is pretty much similar to OAuth 2.0.
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.
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
/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
/api/account/party/user
Get the user profiles under grant scope
Header
Content-Type
application/json
Authorization
Bearer <access token>
Request Example
Response
. Refer to the definitions for more details. Only request basic
scope when the parameter is not given.
. Refer to the definitions for more details. Only grant basic
scope if parameter not given.