Skip to main content

Tencent CAPTCHA Configuration

Tencent CAPTCHA is a widely used security service developed by Tencent Holdings Limited in China. It helps protect your application from automated bot attacks while offering a smooth user experience. LoginRadius supports Tencent CAPTCHA to guard against fraudulent activities such as account abuse, brute-force attempts, and DDoS threats.

To integrate Tencent CAPTCHA into your LoginRadius authentication flows, you must register for Tencent CAPTCHA, configure it in the LoginRadius Admin Console, and pass the validation token in your API requests.

Refer to Tencent CAPTCHA documentation for widget setup and frontend integration instructions.

Configuration

This section walks you through obtaining your Tencent CAPTCHA credentials, configuring them within the LoginRadius Admin Console, and enabling CAPTCHA protection for specific authentication flows.

  • Get Tencent CAPTCHA Credentials
  • To begin:
    • Ensure you have a QQ account. Create one here if needed.
    • Log in to the Tencent CAPTCHA Console.
    • Register your application by filling out the required details.
    • After verification, you'll receive:
      • App ID
      • App Secret Key

CAPTCHA Integration by Use Case

Before starting, render the CAPTCHA widget on your UI using Tencent’s frontend SDK. Once a user completes the challenge, a validation token is generated. This token should be submitted using the relevant LoginRadius API request.

Refer to the Tencent CAPTCHA integration guide for frontend widget setup and token handling.

Captcha Implementation on Registration Form

Integrate Tencent CAPTCHA with your user registration process to prevent automated sign-ups using either the LoginRadius API or JavaScript SDK.

Pass the Tencent CAPTCHA response token in the Registration API call:

{
"email": "[email protected]",
"password": "UserPassword123",
"tencent_captcha_response": "VALIDATION_TOKEN"
}

Endpoint

POST https://api.loginradius.com/identity/v2/auth/register

Captcha Implementation on Login Form

Secure your login flow by validating Tencent CAPTCHA tokens before authenticating users through API or SDK methods.

Pass the Tencent CAPTCHA response token in your Login API request:

{
"email": "[email protected]",
"password": "UserPassword123",
"tencent_captcha_response": "VALIDATION_TOKEN"
}

Captcha Implementation on Forgot Password

Protect the password recovery process by requiring users to complete Tencent CAPTCHA verification before initiating a reset.

Pass the Tencent CAPTCHA response token in your Forgot Password API request:

{
"email": "[email protected]",
"tencent_captcha_response": "VALIDATION_TOKEN"
}