# OAuth in stand-alone python app

**URL:** <https://forums.eveonline.com/t/oauth-in-stand-alone-python-app/437191>\
**Category:** Third Party Developers\
**Created:** [January 24, 2024, 8:42pm UTC](https://forums.eveonline.com/t/oauth-in-stand-alone-python-app/437191 "2024-01-24T20:42:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sam\_Kalenka](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/sam_kalenka/32/408677_2.png) [@Sam\_Kalenka](https://forums.eveonline.com/u/Sam_Kalenka)\
**Post date:** [January 24, 2024, 8:42pm UTC](https://forums.eveonline.com/t/oauth-in-stand-alone-python-app/437191/1 "2024-01-24T20:42:06Z")

</div>

Hi everyone,

I started to do some more serious trading and am now writing my own app. In order to keep track of my transactions, I also would like to use the non-public ESI endpoints that require authentication.

Right now, I have working solution that  
a) opens the login page  
b) briefly starts an http server only to catch the callback  
All in all, my solution works but seems contrived.

Is there a official/standard way to do auth2 for ESI if it is not a web application but a stand-alone (python) app?

o7

---

<div class="post-metadata">

**Author:** ![Golden\_Gnu](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/golden_gnu/32/459734_2.png) [@Golden\_Gnu](https://forums.eveonline.com/u/Golden_Gnu)\
**Post date:** [January 25, 2024, 9:02am UTC](https://forums.eveonline.com/t/oauth-in-stand-alone-python-app/437191/2 "2024-01-25T09:02:17Z")

</div>

That is a standard way to do it, that is how I do it in jEveAssets. Normally, if you don’t have a private app, you also want to use PKCE instead of the secret for desktop applications. See the documentation for details: [https://docs.esi.evetech.net/](https://docs.esi.evetech.net/)

---

<div class="post-metadata">

**Author:** ![Sam\_Kalenka](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/sam_kalenka/32/408677_2.png) [@Sam\_Kalenka](https://forums.eveonline.com/u/Sam_Kalenka)\
**Post date:** [January 26, 2024, 8:18am UTC](https://forums.eveonline.com/t/oauth-in-stand-alone-python-app/437191/3 "2024-01-26T08:18:33Z")

</div>

Thanks for the quick reply and the help! I will have a look.

---

<div class="post-metadata">

**Author:** ![Tonto\_Auri](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/tonto_auri/32/388339_2.png) [@Tonto\_Auri](https://forums.eveonline.com/u/Tonto_Auri)\
**Post date:** [January 30, 2024, 3:56pm UTC](https://forums.eveonline.com/t/oauth-in-stand-alone-python-app/437191/4 "2024-01-30T15:56:10Z")

</div>

Short version: OAuth is unsuitable for standalone apps. You’ll have to use workarounds.

---

<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:** [April 29, 2024, 3:56pm UTC](https://forums.eveonline.com/t/oauth-in-stand-alone-python-app/437191/5 "2024-04-29T15:56:21Z")

</div>

Closed on April 29, 2024, 3:56pm UTC

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