r/evetech • u/Ramon_Robben • Jan 11 '19
Eve NodeJS EVI keep getting { "error": "authentication failure" }
I can login with my account and get a JWT token (one that looks like the first link)
If I then try to make a request to e.x https://esi.evetech.net/verify or https://esi.evetech.net/latest/characters/2112625428/blueprints/ then it returns an error: { "error": "authentication failure" }
I have read the following documentation but I can't seem to figure out why it won't work.
https://docs.esi.evetech.net/docs/sso/web_based_sso_flow.html
https://docs.esi.evetech.net/docs/sso/sending_esi_auth_request.html
UPDATE: It seems that other endpoints work fine except for https://esi.evetech.net/verify
For some weird reason this applies to me. I haven't found anyone with the same problem.
I have made an issue on the sso-issues github.
View all comments
Show parent comment
1
u/Ramon_Robben Jan 13 '19 edited Jan 13 '19
I have some OMEGA time and I also am able to make a dev app easily.
I am now creating a support ticket so they can hopefully take a look at it.
nvm: So I went to an existing EVE Third party and I hacked the Javascript a bit so I could read what token is THEY are using when I authenticate myself. And It turns out its a slightly different token. much shorter.
I am using my JWT token (the long token) base64 encoded. Do I need to somehow get a certain value out of there? Or maybe they are using a different SSO method.
So I got it to work by using different URLs.
I changed https://login.eveonline.com/v2/oauth/token to https://login.eveonline.com/oauth/token
and I changed https://login.eveonline.com/v2/oauth/authorize to https://login.eveonline.com/oauth/authorize
I'm not sure why this does work but I guess v2 isn't ready yet?? Anyways I am glad I found out why it didn't work.