Generating a signature (authentication of a request)

April 17, 2024

ID 206492

To obtain any lacking data you need for generating a signature, you must contact Kaspersky DDoS Protection Technical Support.

To generate a signature, you must concatenate the following:

  1. Customer ID.
  2. User ID.
  3. Name of the called method.
  4. Arguments of the called method in the order matching the method declaration. Only simple arguments are used. Structures are skipped. For more details, see the Processing transmitted parameters section.
  5. SecretKey, which is defined in the settings and is known only to the Customer and the System.
  6. System time (unixtime), rounded down to 600 seconds. Example using Python:

    int(600 *(int(round(time.time() / 600,0))))

The hash must be calculated from the string resulting from concatenation (more information on request). The hash is written as a lowercase hexadecimal string (32 characters) and is transmitted in the ClientAuth structure with the name Auth. The system time on clients must not differ from the exact time by more than 600 seconds. Otherwise, authentication will be unsuccessful. If an error occurs, the solution may generate a SOAP Fault exception with explanatory text.

Did you find this article helpful?
What can we do better?
Thank you for your feedback! You're helping us improve.
Thank you for your feedback! You're helping us improve.