Back to the room

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 symbols

Loading

Called by (1)
SymbolFileResolved by
open_checkoutgit_source.pysame file
Inside (1)
SymbolFileResolved by
git_sourcegit_source.pysame 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

Read it on GitHub at this commit