[TASK] Rewrite eID handling as PSR-15 middleware