ESI SSO giving 401 Unauthorized error when requesting for token

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.

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]”
}

1 Like

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