MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / fetch

Method fetch

pymongo/auth_oidc_shared.py:122–123  ·  view source on GitHub ↗
(self, context: OIDCCallbackContext)

Source from the content-addressed store, hash-verified

120
121class _OIDCK8SCallback(OIDCCallback):
122 def fetch(self, context: OIDCCallbackContext) -> OIDCCallbackResult:
123 return OIDCCallbackResult(access_token=_get_k8s_token())
124
125
126def _get_k8s_token() -> str:

Callers

nothing calls this directly

Calls 2

OIDCCallbackResultClass · 0.85
_get_k8s_tokenFunction · 0.85

Tested by

no test coverage detected