| Pages: 1 :: [one page] |
| Author |
Thread Statistics | Show CCP posts - 0 post(s) |

CHELYBA
Brutor Tribe Minmatar Republic
0
|
Posted - 2015.03.12 16:49:48 -
[1] - Quote
Hi there. I'm not very experienced in programming in general and EVE API in particular, but I've been playing with CREST and XML API for a while for my market tool. Now I'd like to get access to the market orders with Authenticated CREST.
I'm following the steps described here - https://developers.eveonline.com/resource/single-sign-on and it's generally working. However I always get "refresh_token": null, token request is fine and works. This corresponds to the response from the manual, but is quite inconvenient since my program is standalone and I'd like to avoid hopping in browser as much as possible.
Also, in a number of examples here I see stuff like this:
self.settings['accessToken']=response['access_token'] self.settings['refreshToken']=response['refresh_token'] And further refresh token requests.
So, am I doing something wrong or lack of refresh token is the normal behavior and code like quoted one won't work? Sorry, if I haven't digged enough before posting here. |

Ancient Evils
Association of Commonwealth Enterprises Nulli Secunda
2
|
Posted - 2015.03.12 18:20:37 -
[2] - Quote
i am in a similar boat. I get the access token, but the refresh token is null. Either its broken ccp side OR i need to make anotehr call for the refresh token.
I have tried passing refresh_token as grant_type but this has had no effect.
So, HOW do i get a refresh token.
Thx |

SJ Astralana
Syncore
98
|
Posted - 2015.03.12 19:16:54 -
[3] - Quote
Does your requested scopes list in the CREST UI include publicData? This is necessary for the refresh token to be returned.
Hyperdrive your production business: Eve Production Manager
|

Ancient Evils
Association of Commonwealth Enterprises Nulli Secunda
2
|
Posted - 2015.03.12 19:42:29 -
[4] - Quote
yes, on my app details i am set for crest access and requests scopes is public data |

CHELYBA
Brutor Tribe Minmatar Republic
0
|
Posted - 2015.03.12 19:43:51 -
[5] - Quote
SJ Astralana wrote:Does your requested scopes list in the CREST UI include publicData? This is necessary for the refresh token to be returned. Oh, great! Thanks a lot. I've used the URI from the example (with empty scope=) and thought that settings I've specified in application are enough. Now I set scope=publicData in first request and it returns refresh token. |

Ancient Evils
Association of Commonwealth Enterprises Nulli Secunda
2
|
Posted - 2015.03.12 19:57:40 -
[6] - Quote
i have 'scope'=> 'publicData' and still get a null refresh_token |

CHELYBA
Brutor Tribe Minmatar Republic
0
|
Posted - 2015.03.12 20:24:49 -
[7] - Quote
Ancient Evils wrote:i have 'scope'=> 'publicData' and still get a null refresh_token The point is that you don't only specify it in application settings on developers.eveonline.com, but also put it in the initial url you direct user to:
https://login.eveonline.com/oauth/authorize/?response_type=code&redirect_uri=callbackuri&client_id=client(app)id&scope=publicData&state=uniquestate123 scope=publicData <- this is that matters |

Ancient Evils
Association of Commonwealth Enterprises Nulli Secunda
2
|
Posted - 2015.03.12 22:20:54 -
[8] - Quote
delete this |
| |
|
| Pages: 1 :: [one page] |