From 7af344b00a99291f77f18a7a558f6f450344c869 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Tue, 20 Dec 2016 07:10:29 -0500 Subject: [PATCH] Bugfix in SSO. --- calefaction/eve/sso.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/calefaction/eve/sso.py b/calefaction/eve/sso.py index 49215ad..ca64e50 100644 --- a/calefaction/eve/sso.py +++ b/calefaction/eve/sso.py @@ -44,13 +44,10 @@ class SSOManager: in a sensible way or looks to be down. """ url = "https://login.eveonline.com/oauth/token" - params = {} if refresh: - params["grant_type"] = "refresh_token" - params["code"] = code + params = {"grant_type": "refresh_token", "refresh_token": code} else: - params["grant_type"] = "authorization_code" - params["refresh_token"] = code + params = {"grant_type": "authorization_code", "code": code} self._debug("[POST] /oauth/token") try: