ESI SSO giving 401 Unauthorized error when requesting for token


(Kenneth Dallocort) #1

I am developing a web based application for the game. I was able to get the authorization code. But when I try to request for an access token, I was getting the 401 error.

I tried with the fiddler to see what was happening and I still got the 401 error. The below is the sample fiddler request I used

POST https://login.eveonline.com/oauth/token HTTP/1.1

Authorization: Basic [censored]
Content-Type: application/json
Host: login.eveonline.com

{
“grant_type”:“authorization_code”,
“code”:"[censored]"
}

Any help would be appreciated.

Thank you.


(Kenneth Dallocort) #2

I found the mistake. I had given a one line space between POST and Authorization. Removing it worked.

POST https://login.eveonline.com/oauth/token HTTP/1.1
Authorization: Basic [censored]
Content-Type: application/json
Host: login.eveonline.com

{
“grant_type”:“authorization_code”,
“code”:"[censored]"
}


(system) #3

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.