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

Method handleServerRequest

service/esi.py:218–234  ·  view source on GitHub ↗
(self, message)

Source from the content-addressed store, hash-verified

216 # get (endpoint, char, data?)
217
218 def handleServerRequest(self, message):
219 if not message:
220 raise GenericSsoError("Could not parse out querystring parameters.")
221
222 try:
223 state_enc = message['state']
224 state = json.loads(base64.b64decode(state_enc))['state']
225 except Exception:
226 raise GenericSsoError("There was a problem decoding state parameter.")
227
228 if state != self.state:
229 pyfalog.warn("OAUTH state mismatch")
230 raise GenericSsoError("OAUTH State Mismatch.")
231
232 pyfalog.debug("Handling SSO login with: {0}", message)
233
234 self.handleLogin(message['code'])
235
236 def startTokenValidation(self):
237 pyfalog.debug("Starting ESI token validation thread")

Callers 1

loginMethod · 0.95

Calls 2

handleLoginMethod · 0.95
GenericSsoErrorClass · 0.90

Tested by

no test coverage detected