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

Class _OIDCGCPCallback

pymongo/auth_oidc_shared.py:112–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110
111
112class _OIDCGCPCallback(OIDCCallback):
113 def __init__(self, token_resource: str) -> None:
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 1

_build_credentials_tupleFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected