GetFusionAuthToken
Obtains an authentication token after the integrated authentication client completes initialization. The developer server calls this operation to obtain the authentication token, which is then passed to the SDK for authentication.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dypns:GetFusionAuthToken |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| SchemeCode |
string |
Yes |
The scheme code. |
FA1000*************201 |
| PackageName |
string |
No |
The package name of the app. This parameter is required when Platform is set to Android. |
com.example.test |
| PackageSign |
string |
No |
The package signature of the app. This parameter is required when Platform is set to Android. |
47fcc************************278 |
| BundleId |
string |
No |
The bundle ID of the app. This parameter is required when Platform is set to iOS. |
com.example.test |
| Platform |
string |
Yes |
The platform. Valid values: Android and iOS. |
Android |
| DurationSeconds |
integer |
Yes |
The validity period of the token. Unit: seconds. Minimum value: 900. Maximum value: 43200. |
900 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Message |
string |
The description of the status code. |
Success |
| RequestId |
string |
The ID of the request. It is a unique identifier generated by Alibaba Cloud for the request and can be used to troubleshoot and locate issues. |
CC3BB6D2-2FDF-4321-9DCE-B38165CE4C47 |
| Model |
string |
The returned authentication token string. This token is primarily used for validity verification during client SDK initialization. |
FKcksloqk***********jalEc+ |
| Code |
string |
The status code of the request.
|
OK |
| Success |
boolean |
Specifies whether the API call is successful. Valid values:
|
false |
Examples
Success response
JSON format
{
"Message": "Success",
"RequestId": "CC3BB6D2-2FDF-4321-9DCE-B38165CE4C47",
"Model": "FKcksloqk***********jalEc+",
"Code": "OK",
"Success": false
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | SchemeNumberOverLimit | The maximum number of scheme is exceeded. | |
| 400 | SmsCodeVerifyFail | The specified smsCode is invalid. | |
| 400 | SmsSignNameNotExist | The specified sms signName is invalid. | |
| 400 | Throttling.System | The request was denied due to API flow control. | Request was denied due to api flow control. |
| 400 | UnknowError | The requested service is not available now, please try again later. | |
| 400 | Unsupported.Account | Your account has not activated the product. | Your account not be opened the product. |
| 400 | VerifySchemeNotExist | The specified verify scheme already exists. | |
| 400 | PackageSignedConflict | The specified package signed already exists. | |
| 400 | RamPermissionDeny | The user is not authorized to operate on the specified resource. | |
| 400 | SceneQueryFail | The specified scene does not exist. | |
| 400 | SchemeNotPassed | The scheme is not passed. | |
| 500 | SystemError | A system error occurred. | |
| 500 | OutOfService | The account is suspended. | |
| 403 | UnauthorizedOperation | Failed to verify your access permissions. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.