MCPcopy
hub / github.com/authlib/authlib / parse_response_token

Method parse_response_token

authlib/oauth2/client.py:414–424  ·  view source on GitHub ↗
(self, resp)

Source from the content-addressed store, hash-verified

412 self.compliance_hook[hook_type].add(hook)
413
414 def parse_response_token(self, resp):
415 if resp.status_code >= 500:
416 resp.raise_for_status()
417
418 token = resp.json()
419 if "error" in token:
420 raise self.oauth_error_class(
421 error=token["error"], description=token.get("error_description")
422 )
423 self.token = token
424 return self.token
425
426 def _fetch_token(
427 self, url, body="", headers=None, auth=None, method="POST", **kwargs

Callers 6

_fetch_tokenMethod · 0.95
_refresh_tokenMethod · 0.95
_fetch_tokenMethod · 0.45
_refresh_tokenMethod · 0.45
_fetch_tokenMethod · 0.45
_refresh_tokenMethod · 0.45

Calls 1

getMethod · 0.45

Tested by

no test coverage detected