How to get character_id for browser apps

Hello,
I have a browser app without any server. I can get the access token using the implicit way. Now I want to get the character_id from the access token.
I try to do a XMLHttpRequest to https://login.eveonline.com/oauth/verify. Unfortunately the browser creates an OPTION request instead of a GET request and creates it without the necessary autorization header. So the CCP server responds with 404 and refuses to return a character id.

Can anyone give me a hint how to get a character_id in a browser only app?

Regards
Dreiblum

Got it!
The URL https://login.eveonline.com/oauth/verify seems to be invalid. It works fine when using the URL https://esi.tech.ccp.is/verify/

I use https://login.eveonline.com/oauth/verify in my website and it returns the char id just fine.

Look over this: http://eveonline-third-party-documentation.readthedocs.io/en/latest/sso/obtaincharacterid.html

Please note that: https://esi.tech.ccp.is/verify/ will prime the ESI auth cache, making the rest of the endpoints somewhat faster. If you plan to use the auth for ESI, always use https://esi.tech.ccp.is/verify/ :slight_smile:

1 Like

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