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.
 

Standalone application without manual authorization?

Author
March rabbit
Aliastra
Gallente Federation
#1 - 2016-11-15 12:00:38 UTC
Trying to wrap my head over SSO (it looks like mandatory with CREST/Swagger)... And it always boils down to "redirect user to Authorization page, get and use token".

I have simple program which reads API XML trading data for my characters. And i would not like to do any manual work every time i update the data (sometime i update it every hour and sometime once a day).

Assuming that my application is only used by me and runs in the same machine all the time.
Is there i can do to upgrade to Swagger and keep my current functionality?

Thanks

The Mittani: "the inappropriate drunked joke"

Althalus Stenory
Flying Blacksmiths
#2 - 2016-11-15 12:37:29 UTC
The easier : manually call the login page, auth yourself wih some scope, get the code and ask for your refresh token. (tl;dr http://eveonline-third-party-documentation.readthedocs.io/en/latest/sso/authentication.html#redirect-to-the-sso )

Then in your app, save the refresh token somewhere and then just use it to get your access token each time you need it (it's just a POST call then reading the response). Doc: http://eveonline-third-party-documentation.readthedocs.io/en/latest/sso/refreshtokens.html

This is assuming you only do it for yourself.

You can also do the whole thing within your app, the process is the same : open a page on the login with the correct scope, get the code in the redirect after the login, then call the correct endpoints to get all the token you need and you're done.

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

March rabbit
Aliastra
Gallente Federation
#3 - 2016-11-15 13:52:58 UTC
Thanks!

Having problems getting refresh token (receiving 'invalid client' all the time) but i see the path.

The Mittani: "the inappropriate drunked joke"

Xliff
A.C.M.E. Construction Inc.
#4 - 2016-11-18 15:15:02 UTC
If you are going to do this in your app, you have to realize that cookies are a LARGE part of the authentication process.

Your app needs to handle that.
David Davaham
Deep Blue Logistics
#5 - 2016-11-19 04:02:45 UTC
What language is your application coded in?

Developer of EVEmail