Files
iptvnator/docs
4grayandClaude Fable 5 c477df59c0 fix(stalker): bind sessions to the portal base path, not just the origin
Endpoint discovery deliberately preserves tenant base paths — the candidate
builder has an explicit case for `/tenant/c/portal.php` — so two portals can
share one origin. The session fingerprint kept only the origin, which made
`/tenant-a/…` and `/tenant-b/…` the same session: editing a playlist between
them re-presented tenant A's bearer token to tenant B.

The key now carries origin AND path (query/fragment dropped, trailing slashes
normalised). No handler-path equivalence rule is attempted: both sides of the
comparison read the same persisted `portalUrl`, so the same portal always
yields the same key, and the value changes only on a real edit or repair —
both of which re-authenticate anyway. An equivalence rule would add machinery
whose only failure mode is aliasing two genuinely different endpoints.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-03 18:42:11 +02:00
..