The translation was generated automatically and may contain mistakes

Server-to-server interaction scenario

Server-to-server interaction in the context of integration with VK ID Captcha is a scenario in which there is VKontakte an additional link between your client and the API in the form of a server, i.e. your server communicates with the API VKontakte and then with your client.

If you use such a scenario, when handling a captcha error in repeated requests to the API VKontakte you need to pass an additional parameter remixstlid .

What it looks like in general (regardless of platform):

  1. 1.
    You have integrated the VK ID Captcha SDK.
  2. 2.
    Your server sends a request to the VKontakte API..
  3. 3.
    API VKontakte returns to your server captcha Error which contains:
    • •
      Code error_code: 14 .
    • •
      Message error_msg: "Captcha needed" .
    • •
      Captcha session initialization link redirect_uri .
    • •
      Temporary User ID remixstlid .
  4. 4.
    You process the response and display the captcha to the user.
  5. 5.
    The user passes the captcha.
  6. 6.
    The API VKontakte analyzes user actions. If the API succeeds, the VKontakte sends you success_token with a captcha success token.
  7. 7.
    You send an API VKontakte a repeat request (step 2), to which the captcha error returned. The query needs to pass the following parameters:
    • •
      success_token with the token value you received in step 6.
    • •
      remixstlid with the temporary user ID you received in the CAPTCHA Error .