This documentation is for WSO2 Identity Server 5.4.0. View documentation for the latest release.
Page Comparison - Setting Up ReCaptcha (v.12 vs v.13) - Identity Server 5.4.0 - WSO2 Documentation

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Register your identityt server domain.

    1. Visit  https://www.google.com/recaptcha/admin.

    2. Provide the following details and click Submit.

      FieldDescriptionSample
      LableThis is a label to identify the site.WSO2 Identity Server
      reCAPTCHA typeThis is the type of the reCaptcha. SelectSelect either of the following
      • reCAPTCHA v2 > "I'm not a robot" Checkbox
      • recCAPTCHA v2 > Invisible reCAPTCHA badge
      DomainsThis defines the domain and the subdomains to which this registration applies to.is.wso2.com

    3. Click Submit

      Note that a site key and secret key get generated. Copy them for later use.

  2. Open the captcha-config.properties file located in the <IS_HOME>/repository/conf/identity/ directory and configure the following properties.

    Code Block
    # Google reCAPTCHA settings
    
    # Enable Google reCAPTCHA
    recaptcha.enabled=true
    
    # reCaptcha API URL
    recaptcha.api.url=https://www.google.com/recaptcha/api.js
    
    # reCaptcha verification URL
    recaptcha.verify.url=https://www.google.com/recaptcha/api/siteverify
    
    # reCaptcha site key
    recaptcha.site.key=<your site key>
    
    # reCaptcha secret key
    recaptcha.secret.key=<your site secret key> 
  3. Restart WSO2 Identity Server. 

You have successfully set up reCaptcha for your site. You can now configure reCaptcha with any of the following: 

Excerpt
hiddentrue

captcha