メインコンテンツにスキップ

Use Alibaba Cloud Captcha

This guide explains how to use Alibaba Cloud Captcha as the captcha of Casdoor. Alibaba Cloud Captcha offers two kinds of validation: sliding validation and intelligent validation.


Learning outcomes​

  • Create a captcha configuration in Alibaba Cloud.
  • Add Alibaba Cloud Captcha as a captcha provider in Casdoor.

What you need​

  • An Alibaba Cloud account and an AccessKey
  • Administrator access to the Casdoor admin console

Create a configuration in Alibaba Cloud​

  1. In the Alibaba Cloud console, open the Captcha service and click Confirm Open.

    Activation of the Captcha service

  2. In the Captcha console, click Add configuration.

    Add configuration button

  3. Fill in the form and submit it.

    Configuration form

  4. Note the scene and the app key of the configuration.

    Scene of the configuration

    App key of the configuration

  5. Note the AccessKey ID and AccessKey Secret from your profile.

Add the provider in Casdoor​

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

  2. Set Category to Captcha, Type to Aliyun Captcha, and Sub type to sliding validation or intelligent validation.

  3. Enter the Access key, the Secret access key, the Scene, and the App key.

    Alibaba Cloud Captcha provider in Casdoor

  4. Click Preview to check the captcha.

    Sliding validation:

    Preview of sliding validation

    Intelligent validation:

    Preview of intelligent validation

  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.

Alibaba Cloud Captcha in the application

See also​