Authentication methods
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 |
|
|
| 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. |