Переглянути джерело

Fix refresh token behavior.

master
Ben Kurtovic 7 роки тому
джерело
коміт
676a9d357c
1 змінених файлів з 3 додано та 1 видалено
  1. +3
    -1
      calefaction/eve/sso.py

+ 3
- 1
calefaction/eve/sso.py Переглянути файл

@@ -44,11 +44,13 @@ class SSOManager:
in a sensible way or looks to be down.
"""
url = "https://login.eveonline.com/oauth/token"
params = {"code": code}
params = {}
if refresh:
params["grant_type"] = "refresh_token"
params["code"] = code
else:
params["grant_type"] = "authorization_code"
params["refresh_token"] = code
self._debug("[POST] /oauth/token")

try:


Завантаження…
Відмінити
Зберегти