Hello everyone. Hopefully i’m posting this in the correct sub-forum…
Basically, after requesting auth from the EVE API (using implicit requests since it’s a frontend JS app), the API returns a token onto my given callback URL - however, instead of using questionmarks (?) to append the actual query string - the API returns a hashtag.
Implicit auth mode is the only way you can do it frontend-side according to the docs. Using the normal “code” to handshake fails due to CORS. Will take a look at the link. thnx
Edit: I managed to work around it by parsing the hash part of the url on my own. If anyone comes across this with the same problem here’s what i did (using Vue.js router btw):
Yup, that’s implicit request. That’s what i’ve been using since the beginning since requesting it the “usual” way fails immediately due to CORS
Basically, you redirect the user to EVE login, and the API returns the access token back to you without handshaking and sending your app secret. The problem was API returning hash parameters instead of classic query params separated with “?” or “&”
But its not implicit flow. Implicit flow is when you get your token back in the callback. This method returns the code that you can use for getting a refresh token. The v2 url also has access-control-allow-origin: * so it should work fine doing it from your JS.
Yea, I skimmed over the docs and it looked like what I’ve been using already up to the point with the new base64/sha encoded random string. Will try this out instead of using the token gotten in the callback directly.