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 for a desktop app

Author
Noel LeBlanc
LeBlanc Industries
#1 - 2016-05-16 04:13:10 UTC
Hi folks,

I'm a bit confused. I'm trying to write a desktop app that would pull info from CREST and create a route for my toon to run. I'm stuck on the SSO portion, which would be needed for characterNavigationWrite (among other things). I found the Create Application page here: https://developers.eveonline.com/applications/create

What I'm confused about is: what do I put in the Callback URL field? I mean... it's not a website that I'm writing the program for, it's a personal desktop app. It's also not something that I was really planning on releasing to the public (unless I spend a WHOLE lot more time working on it and polishing it up!). The whole application thing seems a bit much for a personal tool. Is there a better way?
Pete Butcher
The Scope
Gallente Federation
#2 - 2016-05-16 06:53:53 UTC
Noel LeBlanc wrote:
Hi folks,

I'm a bit confused. I'm trying to write a desktop app that would pull info from CREST and create a route for my toon to run. I'm stuck on the SSO portion, which would be needed for characterNavigationWrite (among other things). I found the Create Application page here: https://developers.eveonline.com/applications/create

What I'm confused about is: what do I put in the Callback URL field? I mean... it's not a website that I'm writing the program for, it's a personal desktop app. It's also not something that I was really planning on releasing to the public (unless I spend a WHOLE lot more time working on it and polishing it up!). The whole application thing seems a bit much for a personal tool. Is there a better way?


That depends on how you want to handle the incoming auth code. There are several approaches, but since you only wish to use it by yourself, register a custom protocol for your app and put that in the callback url. If you plan on making this public, this approach might not work for all people.

http://evernus.com - the ultimate multiplatform EVE trade tool + nullsec Alliance Market tool

Noel LeBlanc
LeBlanc Industries
#3 - 2016-05-16 07:06:49 UTC
Quote:
register a custom protocol for your app and put that in the callback url


That's what I'm not too clear on... should I just make something up? "register a custom protocol" sounds like something that I have to do first, but with whom?
Pete Butcher
The Scope
Gallente Federation
#4 - 2016-05-16 07:21:10 UTC
Noel LeBlanc wrote:
Quote:
register a custom protocol for your app and put that in the callback url


That's what I'm not too clear on... should I just make something up? "register a custom protocol" sounds like something that I have to do first, but with whom?


In your system. Make up a protocol, eg. "myeveapplication://", and make your callback url point to "myeveapplication://something". Your registered handler will then get called when you log into SSO.

http://evernus.com - the ultimate multiplatform EVE trade tool + nullsec Alliance Market tool

Noel LeBlanc
LeBlanc Industries
#5 - 2016-05-16 07:41:12 UTC
ooooooh! wow... yea. Thanks!
Pete Butcher
The Scope
Gallente Federation
#6 - 2016-05-16 08:21:37 UTC
Note: this is not what Evernus used because the method is unreliable in general. Keep that in mind if you ever make your app public.

http://evernus.com - the ultimate multiplatform EVE trade tool + nullsec Alliance Market tool

Noel LeBlanc
LeBlanc Industries
#7 - 2016-05-16 08:41:15 UTC
I was kinda curious about that, so I'm glad that you brought it up. Evemon seems to have gone to this method, now that I know what you're referring too... what makes it unreliable?
Pete Butcher
The Scope
Gallente Federation
#8 - 2016-05-16 08:51:25 UTC
Noel LeBlanc wrote:
I was kinda curious about that, so I'm glad that you brought it up. Evemon seems to have gone to this method, now that I know what you're referring too... what makes it unreliable?


Person installing your application must have admin privileges, and the protocol cannot be already registered, and the browser should support local protocols, AND no application in the future should "steal" your protocol. Those are the problems i can recall atm, there may be more.

http://evernus.com - the ultimate multiplatform EVE trade tool + nullsec Alliance Market tool