MCPcopy Create free account
hub / github.com/mongodb/mongo-python-driver / fetch

Method fetch

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

Source from the content-addressed store, hash-verified

114 self.token_resource = quote(token_resource)
115
116 def fetch(self, context: OIDCCallbackContext) -> OIDCCallbackResult:
117 resp = _get_gcp_response(self.token_resource, context.timeout_seconds)
118 return OIDCCallbackResult(access_token=resp["access_token"])
119
120
121class _OIDCK8SCallback(OIDCCallback):

Callers

nothing calls this directly

Calls 2

_get_gcp_responseFunction · 0.90
OIDCCallbackResultClass · 0.85

Tested by

no test coverage detected