-
The user will navigate to
http://localhost/auth/login
, which will redirect the user to the EVE SSO authorization server. The request to the EVE SSO authorization server will contain the following query parameters:- response_type=
code
- redirect_uri=
<app-callback-url>
- client_id=
<app-client-id>
- scope=
<space-delimited-scopes>
- state=
<random-string>
- response_type=
-
The user will log in with their specified EVE online account and character, EVE SSO will then make a GET request to the callback URL provided (
redirect_uri
), containing a single-use authorization code that expires in 5 minutes from the time of issue. -
The callback endpoint will retrieve the authorization code from the request and make a POST request to
https://login.eveonline.com/v2/oauth/token
with a payload containing the code, using Basic authentication where the application's client ID is the username and the client secret key is the password. -
EVE SSO will respond with a JSON payload containing a JWT access token and a refresh token that looks like this:
{ "access_token": <JWT token>, "expires_in": 1199, "token_type": "Bearer", "refresh_token": <unique string> }
-
The callback endpoint will retrieve the JSON payload and validate the access token, see docs for more details on how this validation is performed.
-
The callback endpoint will make an authenticated GET request to
https://login.eveonline.com/oauth/verify
. EVE SSO will respond with a JSON payload containing authenticated character information that looks like this:{ "CharacterID": 96542725 "CharacterName": "Solomon Kaldari" "ExpiresOn": "2024-07-04T18:11:20" "Scopes": "esi-alliances.read_contacts.v1 esi-assets.read_assets.v1..." "TokenType": "Character" "CharacterOwnerHash": "HxZWS89g1jAdT3gagRypEadDMm4=" "IntellectualProperty": "EVE" }
-
A new user session will be created for the authenticated character with relevant access permissions depending on the character's corporation and assigned roles.
-
Notifications
You must be signed in to change notification settings - Fork 2
sentrychris/eve-online-esi-sso
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
EVE Online ESI SSO and corporation site boilerplate
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published