# ESI SSO: Always gives an error for me, and error is uselessly vague. Please help!

**URL:** <https://forums.eveonline.com/t/esi-sso-always-gives-an-error-for-me-and-error-is-uselessly-vague-please-help/28401>\
**Category:** Third Party Developers\
**Created:** [September 30, 2017, 2:40am UTC](https://forums.eveonline.com/t/esi-sso-always-gives-an-error-for-me-and-error-is-uselessly-vague-please-help/28401 "2017-09-30T02:40:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Egon\_Magalhaes](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/egon_magalhaes/32/225071_2.png) [@Egon\_Magalhaes](https://forums.eveonline.com/u/Egon_Magalhaes)\
**Post date:** [September 30, 2017, 2:40am UTC](https://forums.eveonline.com/t/esi-sso-always-gives-an-error-for-me-and-error-is-uselessly-vague-please-help/28401/1 "2017-09-30T02:40:18Z")

</div>

Every time I redirect to the SSO from my little programming project, I get the following response (after entering my account username and password if not already signed in,) no matter what I try:

{“error”:“invalid\_request”,“error\_description”:“Some parameters are either missing or invalid”}

This is the URL my app is generating: [https://login.eveonline.com/oauth/authorize/?response\_type=code&redirect\_uri=eveauth-emma%3A%2F%2Fcallback&clientId=MY\_CLIENT\_ID&scope=characterAssetsRead%20characterMarketOrdersRead&state=396464](https://login.eveonline.com/oauth/authorize/?response_type=code&redirect_uri=eveauth-emma%3A%2F%2Fcallback&clientId=MY_CLIENT_ID&scope=characterAssetsRead%20characterMarketOrdersRead&state=396464)

…where “MY\_CLIENT\_ID” is replaced with the 32 character Client ID from [https://developers.eveonline.com/applications](https://developers.eveonline.com/applications), of course.

I’ve carefully read & re-read Eve Online Third Party Docs Authentication Flow and the Third Party Developer Blog article on ESI Step by Step but as far as I can tell the URL my app is using to initiate SSO is correct according to all the documentation. I’ve checked and double-checked that I had everything the same between the URL I’m generating and settings for my application at the Eve Developers site. I’ve experimented with changing the scopes (updating them at the Eve Developers site each time too) from one, to all, to none, to no effect, I still got the same error (well except in the all scopes case, where I got a 404 instead, which I believe is a separate issue already reported here as issue 267 on Github) I tried leaving off the optional state parameter, to no effect, I still got the same error. I’ve tried variations on every part I can think of, and I cannot get it to work.

Please help! How do I get the SSO to redirect to my callback URI and give me an authorization code, rather than giving me an error?

---

<div class="post-metadata">

**Author:** ![Blacksmoke16](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/blacksmoke16/32/376589_2.png) [@Blacksmoke16](https://forums.eveonline.com/u/Blacksmoke16)\
**Post date:** [September 30, 2017, 3:09am UTC](https://forums.eveonline.com/t/esi-sso-always-gives-an-error-for-me-and-error-is-uselessly-vague-please-help/28401/2 "2017-09-30T03:09:52Z")

</div>

you have `clientId=` should be `client_id=`.

Also not sure if it’s an issue or not but you dont have http:// or https:// for your uri callback.

---

<div class="post-metadata">

**Author:** ![Egon\_Magalhaes](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/egon_magalhaes/32/225071_2.png) [@Egon\_Magalhaes](https://forums.eveonline.com/u/Egon_Magalhaes)\
**Post date:** [September 30, 2017, 3:15am UTC](https://forums.eveonline.com/t/esi-sso-always-gives-an-error-for-me-and-error-is-uselessly-vague-please-help/28401/3 "2017-09-30T03:15:34Z")

</div>

_facepalm_

Yup, that’s it. Changing it to client\_id= fixed it. Thanks so much for finding that, I can’t believe I missed that. It’s totally working now.

The weird uri callback is intentional, I’m working on an iOS app, and it triggers a registered URL handler specific to my app, which is also working now.

Thank you so much for catching my camel-casing there, I really appreciate it!!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/eveonline/original/3X/4/1/41ec4921cbaca7a6f9ea556e7cc20018461eae5e.png) [@system](https://forums.eveonline.com/u/system)\
**Post date:** [December 29, 2017, 3:16am UTC](https://forums.eveonline.com/t/esi-sso-always-gives-an-error-for-me-and-error-is-uselessly-vague-please-help/28401/4 "2017-12-29T03:16:18Z")

</div>

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