MCPcopy Index your code
hub / github.com/github/spec-kit / auth_headers

Method auth_headers

src/specify_cli/authentication/base.py:33–37  ·  view source on GitHub ↗

Build authentication headers for *token* using *auth_scheme*. Must return a dict with at least an ``Authorization`` key.

(self, token: str, auth_scheme: str)

Source from the content-addressed store, hash-verified

31
32 @abstractmethod
33 def auth_headers(self, token: str, auth_scheme: str) -> dict[str, str]:
34 """Build authentication headers for *token* using *auth_scheme*.
35
36 Must return a dict with at least an ``Authorization`` key.
37 """
38
39 def resolve_token(self, entry: AuthConfigEntry) -> str | None:
40 """Resolve the token for *entry*.

Callers 2

build_requestFunction · 0.45
open_urlFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected