Skip to content

Instantly share code, notes, and snippets.

@CarbonAlabel
Created November 21, 2019 23:03
Show Gist options
  • Save CarbonAlabel/005502d724cb69043834947bed4a188c to your computer and use it in GitHub Desktop.
Save CarbonAlabel/005502d724cb69043834947bed4a188c to your computer and use it in GitHub Desktop.
EVE Online SSO request templates, for use with https://marketplace.visualstudio.com/items?itemName=humao.rest-client
@client_id = ***
@client_secret = ***
@code_challenge = ***
@code_verifier = ***
##############################
# New grant (standard flow v2)
POST https://login.eveonline.com/v2/oauth/token
Content-Type: application/x-www-form-urlencoded
Authorization: Basic {{client_id}} {{client_secret}}
grant_type=authorization_code
&code=...
##############################
# New grant (standard flow v1)
POST https://login.eveonline.com/oauth/token
Content-Type: application/x-www-form-urlencoded
Authorization: Basic {{client_id}} {{client_secret}}
grant_type=authorization_code
&code=...
##################
# New grant (PKCE)
POST https://login.eveonline.com/v2/oauth/token
Content-Type: application/x-www-form-urlencoded
grant_type=authorization_code
&code=...
&client_id={{client_id}}
&code_verifier={{code_verifier}}
#########################
# Refreshing token (PKCE)
POST https://login.eveonline.com/v2/oauth/token
Content-Type: application/x-www-form-urlencoded
grant_type=refresh_token
&refresh_token=...
&client_id={{client_id}}
#####################################
# Refreshing token (standard flow v2)
POST https://login.eveonline.com/v2/oauth/token
Content-Type: application/x-www-form-urlencoded
Authorization: Basic {{client_id}} {{client_secret}}
grant_type=refresh_token
&refresh_token=...
#####################################
# Refreshing token (standard flow v1)
POST https://login.eveonline.com/oauth/token
Content-Type: application/x-www-form-urlencoded
Authorization: Basic {{client_id}} {{client_secret}}
grant_type=refresh_token
&refresh_token=...
##################
# Token revocation
POST https://login.eveonline.com/v2/oauth/revoke
Content-Type: application/x-www-form-urlencoded
token=...
&client_id={{client_id}}
####################
# Token verification
GET https://login.eveonline.com/oauth/verify
Authorization: Bearer ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment