Skip to content
Health
70/100
fair
  • Security25/25
    No findings
  • Activity25/25
    Last human commit 6 months ago
  • Required by15/25
    1 module depends on it
  • Maturity5/25
    In 1 Odoo series since 18.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
1
Modules depending on it
External deps
6 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.07 MB
Module directory on disk
Code analysis 0 migration notes 1 model 1 view 0 HTTP endpoints

Description

This module provides a simple way to protect several fastapi endpoints routes with a captcha.

It currently supports the following captcha providers:

Dependencies

Odoo dependencies
OCA/rest-framework:
OCA/web-api:
odoo/odoo:
Python dependencies
a2wsgi>=1.10.6, fastapi, fastapi-openapi-overrides, parse-accept-language, python-multipart, ujson
System dependencies
None
Required by
fastapi_captcha_altcha_backend

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

Views touched 1

XML IDNameModelTypeStatus
fastapi_endpoint_form_view fastapi.endpoint form Inherits fastapi.fastapi_endpoint_form_view

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 1

New fields (6)
  • captcha_custom_verify_url Char
    help='Custom URL to use for the captcha verification'
  • captcha_minimum_score Float
    default=0.5 help='Minimum score to accept the captcha if a score is provided by the captcha service.'
  • captcha_routes_regex Char
    help='Regexes to match against routes url that should be protected by this captcha, comma separated. If empty, all routes will be protected'
  • captcha_secret_key Char
    groups='base.group_system' help='Secret key to use for the captcha validation'
  • captcha_type Selection
    help='Type of captcha to use for this endpoint' args: [('recaptcha', 'Recaptcha'), ('hcaptcha', 'Hcaptcha'), ('altcha', 'Altcha')]
  • use_captcha Boolean
    help='If checked, this endpoint will be protected by a captcha'
Public methods (1)
  • validate_captcha(self, captcha_response)
    Validate the captcha response.