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.
 

crest callback url

First post
Author
NUBIARN
Brutal Ballerinas
#1 - 2016-02-24 18:00:02 UTC  |  Edited by: NUBIARN
well I kind of posted this in the api challenge thread but really think I`ll get a better chance of a answer in this channel

ok so i have tried out the crest functionality , mainly as I really enjoyed the XML api, and have learned so many useful real life tradable skills that have helped my day to day job, great to learn stuff from a pastime with data that is complex but understandable from game experience.

I like the way crest is set out and think I may start using JSON instead of XML, In fact I was surprised how easy json is; so cool beans, the crest api is expandable and once over the initial hurdle pretty easy to use, and contains a lot of easy to navigate information.

the one downfall I see from the crest stuff thou is this authentication system effectively meaning anyone wanting to use restricted data in their application would have to effectively run a web server to cope with the authentication system, that is assuming I now understand the call-back system. well great if you application is a web site, not so good if you app is desktop / phone or tablet based. I had a multitude of ideas for a win10 universal apps [I like this platform a lot], but the authentication system seems to negate this use.

so my question, how do I use authenticated crest with no access to a server for the call-back url ?

apologies if this seems like a moan however I am either missing the point which is quite possible or my knowledge is pap also possible, or the authenticated crest is a non starter for apps that don't have a website.

so anyone have a solution to using authenticated crest in c# with no web server to set the callback url ?

thanks in anticipation
Steve Ronuken
Fuzzwork Enterprises
Vote Steve Ronuken for CSM
#2 - 2016-02-24 18:08:46 UTC
https://msdn.microsoft.com/en-us/library/aa767914%28v=vs.85%29.aspx

And use a callback url of something like myawesomeeveapp://localhost/

With your application set up to catch those, and do something with them. It's a very very common thing to do on mobile, and works on desktop. You'll probably want to have your app as a singleton, so do something like open a port when it starts. if it can't, pass the auth details to that port.

Woo! CSM XI!

Fuzzwork Enterprises

Twitter: @fuzzysteve on Twitter

NUBIARN
Brutal Ballerinas
#3 - 2016-02-28 12:13:48 UTC
thanks for the reply steve, it set me on the way to figuring this all out. wow this has been a interetsing learning curve.

it is possible to use the SSO without a web server or azure service. in fact microsoft have WebAuthenticationBroker which will generate a callbackurl for your win10 store app. with that out of the way I have been able to launch the SSO, login, select the char, and then receive the first authorisation code.

I have then been able to extract the code do the convertion stuff to get the client id and secrect hashed. and are ready to exchange the authorisation code for the final token.

ok so now I am stuck again. quick questioncrest documentation when looking at this web address is the code you need to make the final HTTP POST for the exchange is this a JSON post or a string url as I`m having trouble with this last bit.

thanks for any help
NUBIARN
Brutal Ballerinas
#4 - 2016-02-28 15:31:18 UTC  |  Edited by: NUBIARN
scratch the above I have realised I am an idiot !!Oops, should have read about headers first OopsOopsOops