Hello There,
i am trying to get the ESI Authentification working on a Projekt. It is my first attempt too the ESI API.
I am Programmierung in python. The generation of the authCode via the link to the Eve Online authentification page is working but i cannot retrieve the access token via the python code provided here:
Python Code
SSO_ACCESS_TOKEN_URL = "https://login.eveonline.com/oauth/token"
headers = {}
headers['Content-Type'] = "application/json"
headers['Authorization'] = "Basic " + base64(ClientID:ClientSecret)
#headers['User-Agent'] = "Mozilla/5.0 (Windows NT 6.1; W7) Gecko/20100101 Firefox/59.0"
print("Header :" + str(headers))
body ={}
body['grant_type'] = "authorization_code"
body['code'] = "_authCode_"
print("Body :" + str(body))
req = requests.post(SSO_ACCESS_TOKEN_URL, headers = headers, data = body)
print ("Response from Server: " + str(req))
print ("Response Headers from Server: " + str(req.headers))
Everytime i get status 500 from the Server. If i try to get it via http instead of https its 404 Page not Found.
i did the Step by Step instructions on the Eve Dev Blog for ESI API.
If i request a access token via the Auth.Link and pass this to the Server for getting the CharID it is working. But this is only a one time token for 20min and i want to get the refreshtoken aswell.
Any one here who can help me with this problem?
Alexander Lion