THIS PROJECT IS OUTDATED. The CREST API was discontinued.
This is an example for a simple Django App with EVE Online Single Sign-On (SSO) and authenticated CREST access. It depends on Python Social Auth to integrate EVE SSO with Django's builtin user authentication system and uses PyCrest to interact with the CREST API.
A live demo is not available anymore, since CREST is discontinued.
If you want to try it out on your own server, loosely follow these steps:
- Get the code:
git clone https://gitlab.com/flesser/django-crest-example.git
- Install dependencies (mainly PyCrest and Python Social Auth):
pip install -r requirements.txt
- Register a new application on https://developers.eveonline.com/applications
- choose name and description as you like
- for Connection Type select CREST Access
- in Permissions add publicData to the Requested Scopes List
- as Callback URL use
http://your-server.com/complete/eveonline/
(orhttp://localhost:8000/complete/eveonline/
if you're using the Django development server)
- edit
example/settings.py
and enter your application's Client ID and Secret Key:
SOCIAL_AUTH_EVEONLINE_KEY = '<Your EVE CREST Application Key>'
SOCIAL_AUTH_EVEONLINE_SECRET = '<Your EVE CREST Application Secret>'
- initialize the database:
python manage.py migrate
- run development server:
python manage.py runserver
-
point your browser to http://localhost:8000/
-
???
-
Profit!