跳到主内容

Use Cloudflare Turnstile

This guide explains how to use Cloudflare Turnstile as the captcha of Casdoor.


Learning outcomes​

  • Create a Turnstile widget.
  • Add Cloudflare Turnstile as a captcha provider in Casdoor.

What you need​


Create a widget​

  1. In the Cloudflare dashboard, open the Turnstile tab.

  2. Add a widget: enter a name and the host name of Casdoor, select a widget type, for example Managed, and click Create.

    Turnstile widget creation

  3. Copy the Site Key and the Secret Key.

    Site key and secret key of the widget

Add the provider in Casdoor​

  1. In the Casdoor admin console, go to Identity > Providers and add a provider.

  2. Set Category to Captcha and Type to Cloudflare Turnstile.

  3. Enter the Site key and the Secret key.

    Cloudflare Turnstile provider in Casdoor

  4. Click Preview to check the captcha.

    Preview of Cloudflare Turnstile

  5. Save the provider.

Add the captcha to an application​

Open the edit page of the application, add the provider on the Providers tab, and save. See Add the captcha to an application.

Cloudflare Turnstile in the application

See also​