(self, message)
| 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") |
no test coverage detected