eplan/lib
Eduard Wisch 593c93f377
All checks were successful
Deploy Eplan / deploy (push) Successful in 9s
feat: PWA-Token-Auth statt Dolibarr-REST-API-Key [deploy]
Das ElektroPlan-Backend spricht nicht mehr die Dolibarr-REST-API an
(API-Key-Flow kaputt, REST-Modul nicht zuverlässig), sondern einen
eigenen NOLOGIN-Endpoint im Eplan-Modul.

- ajax/pwa_api.php: NOLOGIN-Endpoint, Auth via X-Eplan-Token-Header
  gegen EPLAN_PWA_SECRET (hash_equals, timing-safe)
  Actions: ping, auftraege_listen, auftrag_details, kunden_suchen,
  dokument_upload (multipart POST)
- lib/eplan_token.lib.php: Lazy-init Token, Rotation, Verifikation
- admin/setup.php: Token-Feld (readonly, anklickbar zum Markieren),
  Endpoint-URL zum Kopieren, Button "Neuen Token erzeugen"
- de/en-Sprachdateien: EplanApiToken* Keys

Muster aus KB #354 (Bericht/Baustelle-PWA).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-19 11:02:27 +02:00
..
eplan.lib.php feat: Dolibarr-Modul Eplan — Initial [deploy] 2026-04-13 18:23:46 +02:00
eplan_token.lib.php feat: PWA-Token-Auth statt Dolibarr-REST-API-Key [deploy] 2026-04-19 11:02:27 +02:00