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 can only make one request per login??

Author
Zymex
Interstate Highway Corporation
#1 - 2017-06-09 00:09:14 UTC
I noticed something weird about SSO and the API.

I am getting my orders, but the content is the same all the time. I have to relogin to the SSO and get a new access token to get new fresh data.

Is this real?

I have to login every single time to get new data?

If you make a desktop app you are basically screwed.

How do people get around this? Do I need to make a API proxy server so I can store a client secret for my desktop app?
Althalus Stenory
Flying Blacksmiths
#2 - 2017-06-09 06:26:01 UTC
You mean the ESI endpoint or XML API endpoint to get your orders ?

In both case, you are probably hitting the cache (1 hour cache with ESI, probably more in XML), that's why (check "expires" header in ESI to see when you'll get fresh data

EsiPy - Python 2.7 / 3.3+ Swagger Client based on pyswagger for ESI

Zymex
Interstate Highway Corporation
#3 - 2017-06-09 12:07:40 UTC
Althalus Stenory wrote:
You mean the ESI endpoint or XML API endpoint to get your orders ?

In both case, you are probably hitting the cache (1 hour cache with ESI, probably more in XML), that's why (check "expires" header in ESI to see when you'll get fresh data


ESI.

No it is not the cache. If I re-login to the SSO I can hit the character orders and get my latest fresh data.

It is literally one request, per login / access token.

This is without a client secret, aka implicit flow.
croakroach
24th Imperial Crusade
Amarr Empire
#4 - 2017-06-11 14:14:56 UTC
Zymex wrote:
II am getting my orders, but the content is the same all the time. I have to relogin to the SSO and get a new access token to get new fresh data.


That's because it is cached.
This route is cached for up to 3600 seconds


Zymex wrote:
If I re-login to the SSO I can hit the character orders and get my latest fresh data.


That's because you circumvented the cache by changing context; which is a bad thing to do intentionally.