GetFusionAuthToken

更新时间:
复制 MD 格式

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

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

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 indicates a successful request.

  • For other error codes, see the error code list.

OK

Success

boolean

Indicates whether the API call succeeded. Valid values:

  • true: The call succeeded.

  • false: The call failed.

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.