Open Ionaru opened 5 years ago
The problem here is that I was sending the grant_type
and code
as query parameters instead of x-www-form-urlencoded
in the body. This used to work with SSOv1 even though it is not in the spec.
SSOv2 no longer supports this.
However the 500 Internal Server Error
is confusing, I'd expect it to return 400 Bad Request
because the request body is missing.
Thanks. I'll take a look at this :)
And yes, using query parameters is not supported for v2, but we'll make the error message clearer.
Bug
When sending a POST request to
https://login.eveonline.com/v2/oauth/token
, the server responds with500 Internal Server Error
and body'An error has occurred.'
.This is preventing me from completing any SSOv2 authentication.
Small reproduction program at: https://gist.github.com/Ionaru/b9b484eb02df5b12ef5bd55749a78eca
Reproduction Steps
git clone https://gist.github.com/b9b484eb02df5b12ef5bd55749a78eca.git
.cd b9b484eb02df5b12ef5bd55749a78eca
.npm i
.http://localhost:3000/sso/auth-callback
and scopeesi-wallet.read_character_wallet.v1
.clientId
andsecretKey
variables inindex.js
with correct values from application.npm run start
.go to http://localhost:3000
.Actual Behaviour
Request responds with
500 Internal Server Error { Message: 'An error has occurred.' }
Expected Behaviour
Response contains normal data:
access_token
,token_type
, etc.Dependencies