Eve-online/Eve ESI Notes

From Federal Burro of Information
Revision as of 13:14, 7 July 2019 by David (talk | contribs)
Jump to navigationJump to search

my app: https://developers.eveonline.com/applications/details/5511#app-section-details

how to auth

http://eveonline-third-party-documentation.readthedocs.io/en/latest/sso/authentication.html

https://developers.eveonline.com/blog/article/sso-to-authenticated-calls < best as of july 6th 2019

swagger ui: https://esi.evetech.net/ui/

urllib: https://docs.python.org/2/library/urllib.html

Request type

implicit grant

https://oauthlib.readthedocs.io/en/latest/oauth2/grants/implicit.html

+----------+
| Resource |
|  Owner   |
|          |
+----------+
     ^
     |
    (B)
+----|-----+          Client Identifier     +---------------+
|         -+----(A)-- & Redirection URI --->|               |
|  User-   |                                | Authorization |
|  Agent  -|----(B)-- User authenticates -->|     Server    |
|          |                                |               |
|          |<---(C)--- Redirection URI ----<|               |
|          |          with Access Token     +---------------+
|          |            in Fragment
|          |                                +---------------+
|          |----(D)--- Redirection URI ---->|   Web-Hosted  |
|          |          without Fragment      |     Client    |
|          |                                |    Resource   |
|     (F)  |<---(E)------- Script ---------<|               |
|          |                                +---------------+
+-|--------+
  |    |
 (A)  (G) Access Token
  |    |
  ^    v
+---------+
|         |
|  Client |
|         |
+---------+

code grant

https://oauthlib.readthedocs.io/en/latest/oauth2/grants/authcode.html

+----------+
| Resource |
|   Owner  |
|          |
+----------+
     ^
     |
    (B)
+----|-----+          Client Identifier      +---------------+
|         -+----(A)-- & Redirection URI ---->|               |
|  User-   |                                 | Authorization |
|  Agent  -+----(B)-- User authenticates --->|     Server    |
|          |                                 |               |
|         -+----(C)-- Authorization Code ---<|               |
+-|----|---+                                 +---------------+
  |    |                                         ^      v
 (A)  (C)                                        |      |
  |    |                                         |      |
  ^    v                                         |      |
+---------+                                      |      |
|         |>---(D)-- Authorization Code ---------'      |
|  Client |          & Redirection URI                  |
|         |                                             |
|         |<---(E)----- Access Token -------------------'
+---------+       (w/ Optional Refresh Token)