Add l2_server field to UserContext

Allows L1 servers to track which L2 server the user authenticated with.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
gilesb
2026-01-11 17:35:18 +00:00
parent 932abb8d7a
commit 11aa0568c5

View File

@@ -20,6 +20,7 @@ class UserContext:
username: str username: str
actor_id: str # Full actor ID like "@user@server.com" actor_id: str # Full actor ID like "@user@server.com"
token: Optional[str] = None token: Optional[str] = None
l2_server: Optional[str] = None # L2 server URL for this user
@property @property
def display_name(self) -> str: def display_name(self) -> str: