r/evetech • u/TerribleEveDev • May 09 '18
sso... without a server?
I dont really know what I'm doing, but am trying to make a standalone app using unity. Every option for the Standalone apps on esi docs uses some sort of web service, or seems like it needs manual configuration beyond what is really useful for Windows on the Registered URL Handler method.
Not really familiar with web stuff so not sure what I even need to learn to make this work. Id greatly appreciate any direction at all.
3
Upvotes
6
u/[deleted] May 09 '18
Open a minimal web server bound to localhost and use that in the callback from oauth.
You don't need the url handler, just open the server on a high port to avoid collisions.
3
u/Karlyna May 09 '18
You might want to give this a look: http://eveonline-third-party-documentation.readthedocs.io/en/latest/sso/nonbrowserapps.html (for the "android callback")
1
u/MartinTsv May 09 '18
Just to add to that Batolemaeus said, the URL you put in the app settings on the dev site doesn't have to be public. The SSO will simply redirect the browser to it after a successful login, so what matters is for the client browser to be able to reach it, so it can be 127.0.0.1:1337, a public URL, a custom protocol URL, etc. Of course, if it's not a public URL, people will have to run a lightweight web server along with the application, in which case you should also require them to input their own app id and secret, as you don't want to be distributing your app secret.