Fastapi Captcha
fastapi_captcha · OCA/rest-framework
Health
70/100
fair
-
Security25/25No findings
-
Activity25/25Last human commit 6 months ago
-
Required by15/251 module depends on it
-
Maturity5/25In 1 Odoo series since 18.0
Heuristic over the facts below, not an audit · How it's computed
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
- 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 ID | Name | Model | Type | Status |
|---|---|---|---|---|
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_urlCharhelp='Custom URL to use for the captcha verification' -
captcha_minimum_scoreFloatdefault=0.5help='Minimum score to accept the captcha if a score is provided by the captcha service.' -
captcha_routes_regexCharhelp='Regexes to match against routes url that should be protected by this captcha, comma separated. If empty, all routes will be protected' -
captcha_secret_keyChargroups='base.group_system'help='Secret key to use for the captcha validation' -
captcha_typeSelectionhelp='Type of captcha to use for this endpoint' args: [('recaptcha', 'Recaptcha'), ('hcaptcha', 'Hcaptcha'), ('altcha', 'Altcha')] -
use_captchaBooleanhelp='If checked, this endpoint will be protected by a captcha'
-
validate_captcha(self, captcha_response)Validate the captcha response.