Eve-online/Eve ESI Notes: Difference between revisions
From Federal Burro of Information
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 7: | Line 7: | ||
urllib: https://docs.python.org/2/library/urllib.html | urllib: https://docs.python.org/2/library/urllib.html | ||
== Request type == | |||
''implicit grant'' | |||
https://oauthlib.readthedocs.io/en/latest/oauth2/grants/implicit.html | |||
<pre> | |||
+----------+ | |||
| 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 | | |||
| | | |||
+---------+ | |||
</pre> | |||
''code grant'' | |||
https://oauthlib.readthedocs.io/en/latest/oauth2/grants/authcode.html | |||
<pre> | |||
+----------+ | |||
| 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) | |||
</pre> |
Revision as of 13:13, 7 July 2019
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
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)