A simple, yet powerful, LTI login application for Django. This app makes it easy to use learning management system (LMS) with LTI 1.0 interface to authenticate users to external services.
Run pip install git+https://github.com/apluslms/django-lti-login.git@master#egg=django-lti-login
.
Add django_lti_login
to settings.INSTALLED_APPS
.
Add django_lti_login.backends.LTIAuthBackend
to settings.AUTHENTICATION_BACKENDS
.
Examine project in example
directory for more detailed example.
Most relevant parts are marked with XXX: for django-lti-login
.
After you have configured your project with settings and lti tokens,
then you can point your LMS to the lti_login
url (see example app).
Remember those lti tokens (a key and a secret).
App provides django management commands to handle those tokens.
An example application is provided in the example directory. In addition, the example is packaged as a Docker image in docker hub / apluslms / run-lti-example. To use the image with A+, you need to add the following snipped to the course docker-compose.yml.
# add to 'services'
lti:
image: apluslms/run-lti-example
volumes:
- data:/data
depends_on:
- grader
- plus