--- type: concept updated: 2026-07-09 tags: [auth, requirements] --- # Authorization Methods The three planned ways to authorize a charging session. Architecturally they all collapse to one gate: **`decide(id_tag)` in `station.py`** ([[csms-toolkit]]) returns Accepted/Rejected against the allowlist in `station_config.json`. Per [[2026-07-09-findings-and-requirements]]: ## 1. RFID cards — ✅ mechanism built, enrollment pending Use the cards already owned. Flow: enable learn mode → tap each card once → harvest its idTag from `seen_tags.json` → add to `authorized` with a name (`kind: "card"`) → set `learn_mode=false` to enforce. ## 2. By vehicle / chassis — ⚠️ needs a physical test True VIN-based **ISO 15118 Plug & Charge is unlikely** on a basic AC unit. The realistic option is **Autocharge**: some chargers automatically send a per-vehicle idTag when a car plugs in, no card tap needed. **The test:** plug the car in *without* tapping a card. If a stable idTag shows up in `seen_tags.json`, whitelist it as `kind: "car"` and "by vehicle" works. If nothing appears, this method is not achievable on the [[anfu-charger|Anfu hardware]] — drop it. ## 3. Mobile / web app — 📋 to build A mobile-friendly web control panel (no app store): - Start/Stop via OCPP `RemoteStartTransaction` / `RemoteStopTransaction` - Live charger status - Clickable allowlist management - Bound to `0.0.0.0`, reached only over [[netbird|NetBird]]; optional PIN/token for defense-in-depth (❓ open decision, see [[overview]])