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

Method fetch

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

Source from the content-addressed store, hash-verified

103 self.token_resource = quote(token_resource)
104
105 def fetch(self, context: OIDCCallbackContext) -> OIDCCallbackResult:
106 resp = _get_azure_response(self.token_resource, context.username, context.timeout_seconds)
107 return OIDCCallbackResult(
108 access_token=resp["access_token"], expires_in_seconds=resp["expires_in"]
109 )
110
111
112class _OIDCGCPCallback(OIDCCallback):

Callers

nothing calls this directly

Calls 2

_get_azure_responseFunction · 0.90
OIDCCallbackResultClass · 0.85

Tested by

no test coverage detected