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

Method auth

service/esiAccess.py:186–198  ·  view source on GitHub ↗
(self, code)

Source from the content-addressed store, hash-verified

184 return {'Authorization': 'Bearer %s' % token}
185
186 def auth(self, code):
187 values = {
188 'grant_type': 'authorization_code',
189 'code': code,
190 'client_id': self.client_id,
191 "code_verifier": self.code_verifier
192 }
193
194 res = self.token_call(values)
195 json_res = res.json()
196
197 decoded_jwt = self.validate_eve_jwt(json_res['access_token'])
198 return json_res, decoded_jwt
199
200 def refresh(self, ssoChar):
201 # todo: properly handle invalid refresh token

Callers 1

handleLoginMethod · 0.80

Calls 2

token_callMethod · 0.95
validate_eve_jwtMethod · 0.95

Tested by

no test coverage detected