Skip to content

enhancement: support for captcha #279

@anantakumarghosh

Description

@anantakumarghosh

Please describe your feature.
A captcha system for core forms. Where captcha will be run after form loads. Submit Action button will be disabled until positive value is received from captcha.

People should be able to use a key in formJson for CoreForm, like: captcha: true/false.

Describe the solution you'd like
A generic function can be created that takes api_url, sitekey and secretKey.

These values will be read from wrappid.conf.json of app and service project.

  • in wrappid-app, api_url and sitekey will be read.
    sample wrappid.conf.json
        "captcha": {
            "enabled": true,
            "platforms": [
                {
                    "name": "",
                    "details": "",
                    "default": true,
                    "script_url": "",
                    "siteKey": ""
                }
                {
                    "name": "",
                    "details": "",
                    "enabled": true,
                    "script_url": "",
                    "siteKey": ""
                }
            ]
        }
  • in wrappid-service project, api_url and secretkey will be read.
    sample wrappid.conf.json
        "captcha": {
            "enabled": true,
            "platforms": [
                {
                    "name": "",
                    "details": "",
                    "default": true,
                    "api_url": "",
                    "secretkey": ""
                },
                {
                    "name": "",
                    "details": "",
                    "enabled": true,
                    "api_url": "",
                    "secretkey": ""
                }
            ]
        },

Few popular service APIs that are used commonly:

  • Cloudflare Turnstile - Free(with limitations) - OpenSource MIT.
    Allows only managed mode for free, unlimited volume
  • hCaptcha - Free(with limitations) - Free - proprietary.
    Free up to one million requests per month
  • reCaptcha - Free - proprietary.

Metadata

Metadata

Labels

3rd-party-packageRelated to 3rd party packagesapiRelated to backend apienhancementNew feature or requestfrontendRelated to frontend appp1This is a priority #1 issue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions