Configuring Eve Online ESI-Scopes¶
For normal operations within SeAT, authentication is provided by EVE Onlines' SSO service and API access with ESI and tokens supplied via SSO. Technical details behind the SSO implementation can be found here.
Authenticating users using SSO effectively means that users may authenticate to SeAT using their existing EVE Online credentials. SeAT does not have access to the credentials itself as that is handled entirely by CCP. Only once authentication is successful from an EVE Online perspective does a user get asked if they want to allow your SeAT installation to have access with the configured set of scopes. Once the user agrees to these scopes, the users browser is redirect back to SeAT and will be logged in.
If you have not configured this yet, the login page will present you with a warning about it:
A bit of setup work is needed in order to have your SeAT setup ready for SSO integration and ESI usage. The gist of it is:
- Step I: Register your application on the EVE Online Developers portal for both Authentication and API Access.
- Step II: Configure your
Register your application¶
Browse to the EVE Online Developers portal and create a new Application.
Give your application a meaningful Name and a Description. Users will see this name when they review the access Third Party applications have to their account so keep that in mind when registering your application.
Next, set the connection type to Authentication & API Access (1), select the ESI Scopes you want (probably all of them) (2) and specify the Callback URL (3)
To select ESI Scopes you can search for them in Available Scopes (2) and select the desired scope. The selected scope then will moved to (3).
Note on the Callback URL
The Callback URL where the user should be redirected to once authentication was successful. In other words, once they have completed authentication using their EVE Online credentials, they need to be redirected back to your SeAT instance. In the example above, we can see it is
https://seat.local/auth/eve/callback. You should replace the
seat.local part with your domain!
For example, assuming you are hosting SeAT at
https://this.is.seat/, then the Callback URL will be
https://this.is.seat/auth/eve/callback. If you have SeAT in a sub folder on your web server, remember to add the folder name before
With the new application created, you will now have the
EVE_CLIENT_SECRET that you need to configure in SeAT itself. Take note of these values.
Set config parameters in
We are almost done. The next thing to do is to add the configuration parameters to our SeAT installs
.env file. Browse to your SeAT installation directory and edit the
.env file (note this is a hidden file and wont show up when you just type
Look for the following section of the file and populate the values with those you got when you created an application on the developers site:
Notes for Docker Users¶
.env file is located in
/opt/seat-docker. Rebuild your app after setting the ESI Details in it using: