Pass 3 of 3 · Deep dive of PHAROSPass 1 · OverviewPass 2 · How it works
Code Observatory / function
_auth_config
codeintel.git_source._auth_config
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 |
|---|---|---|
| open_checkout | git_source.py | same file |
| Symbol | File | Resolved by |
|---|---|---|
| git_source | git_source.py | same file |
codeintel.git_source._auth_configbackend/app/codeintel/git_source.py, lines 314–319Open source
def _auth_config(ref: RepoRef, token: str | None) -> list[tuple[str, str]]: if not token or not ref.host: return [] basic = base64.b64encode(f"x-access-token:{token}".encode()).decode() # Scoped to the repository host only. return [(f"http.https://{ref.host}/.extraHeader", f"Authorization: Basic {basic}")]What the index recorded
- Signature
def _auth_config(ref: RepoRef, token: str | None) -> list[tuple[str, str]]:- File
backend/app/codeintel/git_source.py- Lines
- 314–319
- Parser
- python-ast
- Git blob
6f88470169e4935929c5f865a974bd86da564c1a- Call sites
- 3 named, 1 resolved, 2 left unlinked
- Outside this subset
- 1 more edges reach code outside the graph shown here
