MCPcopy Index your code
hub / github.com/pyfa-org/Pyfa / token_call

Method token_call

service/esiAccess.py:213–232  ·  view source on GitHub ↗
(self, values)

Source from the content-addressed store, hash-verified

211 return json_res
212
213 def token_call(self, values):
214 headers = {
215 "Content-Type": "application/x-www-form-urlencoded",
216 "Host": self.server_base.sso,
217 }
218
219 res = self._session.post(
220 self.server_meta["token_endpoint"],
221 data=values,
222 headers=headers,
223 )
224
225 if res.status_code != 200:
226 raise APIException(
227 self.server_meta["token_endpoint"],
228 res.status_code,
229 res.json()
230 )
231
232 return res
233
234 def validate_eve_jwt(self, jwt_token):
235 """Validate a JWT token retrieved from the EVE SSO.

Callers 2

authMethod · 0.95
refreshMethod · 0.95

Calls 2

APIExceptionClass · 0.85
postMethod · 0.45

Tested by

no test coverage detected