MCPcopy Create free account
hub / github.com/authlib/authlib / parse_response_token

Method parse_response_token

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

Source from the content-addressed store, hash-verified

430 self.compliance_hook[hook_type].add(hook)
431
432 def parse_response_token(self, resp):
433 token = _load_token_response(resp)
434 if "error" in token:
435 raise self.oauth_error_class(
436 error=token["error"], description=token.get("error_description")
437 )
438 self.token = token
439 return self.token
440
441 def _fetch_token(
442 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 2

_load_token_responseFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected