Authentication methods

Updated at:

When you create an API, you can select Simple Authentication or Encrypted Authentication on the Basic Information page.

Authentication method

Simple Authentication

Encrypted Authentication

Suitable scenarios

The client environment, such as a project's internal network, is secure and controlled.

The signature method provides a higher level of security than simple identity authentication.

Technical principle

To authenticate, concatenate the AppCode and AppKey. Add the resulting string to the request header or to the query parameters.

The client program uses the AppKey and AppSecret to generate a signature string. To do this, it hashes a series of request details using an algorithm, such as HmacSHA1. For the list of details to include in the signature, see the Request signature document. To authenticate the API call, add the resulting signature string and the AppKey to the request header.

Pros and cons

  • Pros: Simple and easy to use. It does not require a complex signature generation process. It is compatible with most programming languages and API calling tools.

  • Cons: Low security. The AppCode and AppKey are sent in plaintext within the HTTP request. This creates a risk of exposure during transmission.

  • Pros: High security. The signature changes with each API call, which makes it tamper-proof.

  • Cons: The signature calculation process is complex. It is recommended that you use an SDK or a code library to make API calls.

Usage recommendations

Use this method only in a secure network environment to reduce the risk of exposure during transmission.

Use this method for enhanced security. It is the industry standard for API authentication.