Backup current agri_seedling application

This commit is contained in:
KabundiNjuki
2026-08-27 10:59:50 +03:00
parent eea66ad833
commit 3a7e4e2dad
69 changed files with 2568 additions and 357 deletions
+9
View File
@@ -132,6 +132,15 @@ has_permission = {
# "Field Worker" role; see agri_seedling/utils/auth.py
on_session_creation = "agri_seedling.agri_seedling.utils.auth.set_field_worker_session_expiry"
# Before Request — X-Worker-Token auth hook for mobile field-worker app
# ---------------------------------------------------------------------------
# Validates the X-Worker-Token header on every request and upgrades the session
# from Guest to the proxy user so whitelisted API methods can execute.
before_request = [
"agri_seedling.agri_seedling.auth_hooks.authenticate_worker_token",
]
# Website Route Rules (kept minimal — mobile app is the field-worker client)
# ---------------------------------------------------------------------------
website_route_rules = []