Pass 3 of 3 · Deep dive of PHAROSPass 1 · OverviewPass 2 · How it works
Code Observatory / method
as_state
shared.auth.Principal.as_state
PINNED SOURCE Source and edges from the index at this commit. An execution appears only where one was recorded.
PHAROS at 975a38dMIT license
Around this symbol
Search all symbolsLoading
| Symbol | File | Resolved by |
|---|---|---|
| Principal | auth.py | same file |
shared.auth.Principal.as_statebackend/app/shared/auth.py, lines 83–90Open source
def as_state(self) -> dict: # Shape kept for existing code that reads request.state.user. return { "user_id": str(self.user_uuid), "username": self.name, "scopes": sorted(self.scopes), "tier": self.name, }What the index recorded
- Signature
def as_state(self) -> dict:- File
backend/app/shared/auth.py- Lines
- 83–90
- Parser
- python-ast
- Git blob
c77f24b3d7406a6b302764a8fc5e475c40480e60- Call sites
- 2 named, 0 resolved, 2 left unlinked
- Outside this subset
- 2 more edges reach code outside the graph shown here
