MCPcopy
hub / github.com/authlib/authlib / _fetch_token

Method _fetch_token

authlib/oauth1/client.py:148–153  ·  view source on GitHub ↗
(self, url, **kwargs)

Source from the content-addressed store, hash-verified

146 return token
147
148 def _fetch_token(self, url, **kwargs):
149 resp = self.session.post(url, auth=self.auth, **kwargs)
150 token = self.parse_response_token(resp.status_code, resp.text)
151 self.token = token
152 self.auth.verifier = None
153 return token
154
155 def parse_response_token(self, status_code, text):
156 if status_code >= 400:

Callers 2

fetch_request_tokenMethod · 0.95
fetch_access_tokenMethod · 0.95

Calls 2

parse_response_tokenMethod · 0.95
postMethod · 0.80

Tested by

no test coverage detected