After the fusion authentication client completes initialization, you can call this API from your server to obtain an authentication token. You can then pass the authentication token 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 |
Required when Platform is Android. The app package name. |
com.example.test |
| PackageSign |
string |
No |
Required when Platform is Android. The app package signature. |
47fcc************************278 |
| BundleId |
string |
No |
Required when Platform is iOS. The app bundle ID. |
com.example.test |
| Platform |
string |
Yes |
The platform. Valid values: Android or iOS. |
Android |
| DurationSeconds |
integer |
Yes |
The validity period of the token, in seconds. Minimum value: 900. Maximum value: 43200. |
900 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Message |
string |
The description of the status code. |
成功 |
| RequestId |
string |
The ID of the request. Alibaba Cloud generates a unique identifier for each request. Use it to troubleshoot issues. |
CC3BB6D2-2FDF-4321-9DCE-B38165CE4C47 |
| Model |
string |
The authentication token string. Use this token to verify the client SDK during initialization. |
FKcksloqk***********jalEc+ |
| Code |
string |
The request status code.
|
OK |
| Success |
boolean |
Indicates whether the API call succeeded. Valid values:
|
false |
Examples
Success response
JSON format
{
"Message": "成功",
"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.