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.
 

Swagger authentication.

First post
Author
Jone Sad
Doomheim
#1 - 2017-01-16 02:25:03 UTC
IS there way to authenticate there to get characters data?

I tried with SSO accessToken but it give me


https://esi.tech.ccp.is/latest/characters/xxxxxxxx/wallets/

/var/www/eve-manager/controllers/TestController.php:17:
array (size=1)
  'error' => string 'token not valid for scope(s): esi-wallet.read_character_wallet.v1' (length=65)

Array
(
    [error] => token not valid for scope(s): esi-wallet.read_character_wallet.v1
)


Any solution?
Blacksmoke16
Resilience.
#2 - 2017-01-16 02:36:48 UTC
You have to make an application on the devsite and add the scopes you need.

https://developers.eveonline.com/blog

The error is basically saying that the token you used isn't authorized to get wallet data.
Jone Sad
Doomheim
#3 - 2017-01-16 02:41:45 UTC  |  Edited by: Jone Sad
Blacksmoke16 wrote:
You have to make an application on the devsite and add the scopes you need.

https://developers.eveonline.com/blog

The error is basically saying that the token you used isn't authorized to get wallet data.


I can call xml api with accessToken. Can call CREST this this accessToken... But not the ESI. Ok... Wil read later that blog, again... Blog, why blog - not manual? =\

Pls show me where in that blog describes authentication.
Jone Sad
Doomheim
#4 - 2017-01-16 02:49:11 UTC
Solved. Not because of blog... I remembered that should add some "new" scopes on login (sso).
Blacksmoke16
Resilience.
#5 - 2017-01-16 03:00:39 UTC  |  Edited by: Blacksmoke16
Yes the new ESI scopes.

The ones that are camelCase are either CREST/XML scopes.

Ones that start with esi.xxx are ESI ones.
Steve Ronuken
Fuzzwork Enterprises
Vote Steve Ronuken for CSM
#6 - 2017-01-17 16:24:11 UTC
The scopes required for an ESI endpoint are listed on the page which described them (and in the swagger spec file). Look for the exclamation mark in a red or green circle. (red is you haven't requested it for that session, green if you have)

Woo! CSM XI!

Fuzzwork Enterprises

Twitter: @fuzzysteve on Twitter