These forums have been archived and are now read-only.

The new forums are live and can be found at https://forums.eveonline.com/

EVE Technology Lab

 
  • Topic is locked indefinitely.
 

SSO Auth with XML quirky?

First post
Author
Calvin
Tritanium Forge Industries
#1 - 2016-08-01 01:11:51 UTC
Hey folks,

So I've been fighting with this all day and am thoroughly confused. I'm working on a web app for regularly pulling data from both CREST and the XML API. CREST is working great, I've had no problems there, the XML API is... quirky.

I'm pulling from the Corp Assets, Corp Blueprints, Corp Industry Jobs & History, Corp Market Orders, Corp Wallet Journal & Transactions. I've got them all working (for now), but I had to deviate a little from the guidance in the third-party documentation for XML API auth (https://eveonline-third-party-documentation.readthedocs.io/en/latest/xmlapi/authentication.html). For example, with the Blueprints I need to set the accessType to character, not corporation. Some take character, some take corporation, which is weird.

Now I'm trying to pull from the Corp Locations API, and neither character nor corporation accessType is working, I'm getting an illegal page request error. From the third-party docs I have the right scope connected w/ my token (corporationAssetsRead), and the correct access in the corp (I'm a director), and I have been able to successfully pull from the Corp Assets API, which supposedly has the same access mask. At this point I'm stumped and annoyed. Google searches on the issue have yielded nothing. I'm tempted to revert back to API keys to access the XML API, but that's *another* layer of credentials that I need to keep track of, and I'd much rather not if I can get away with it at all.

Am I completely missing some weird trick to using SSO with the XML API?

Thanks!
CCP Tellus
C C P
C C P Alliance
#2 - 2016-08-02 14:10:36 UTC
Really sorry about that. Turns out I typo'ed the name of the scope in the SSO when we deployed this feature. :(

Should be fixed now. Can you try again, with the scope "corporationAssetsRead"?
Crashys
State War Academy
Caldari State
#3 - 2016-08-02 15:09:53 UTC
Nice as always to discover this after you implemented your 'fixes'.

For the sake of good coding... if your are not going to have a space where you inform those that lose hours coding stuff with CREST, at least update the developers.eveonline.com with this stuff...

Oops
Calvin
Tritanium Forge Industries
#4 - 2016-08-02 15:15:08 UTC
Schaweet! Thanks Tellus! Works great now.

Would you also sneak a peek at the corporation blueprints and corporation asset list endpoints? I need to set my accessType for those to character, rather than corporation, to access them.