django-lti-dynamic-registration
Add-on to django-lti to support dynamic registration.
See: https://www.imsglobal.org/spec/lti-dr/v1p0
More details to come.
Using
from lti_dynamic_registration.views import DynamicRegistrationBaseView
from lti_dynamic_registration.types import (
CanvasLtiMessage,
CanvasLtiRegistration,
CanvasLtiToolConfiguration,
)
from django.shortcuts import redirect, render
class DynamicRegistrationView(DynamicRegistrationBaseView):
tool_friendly_name = "Tool Name"
def get(self, request, *args, **kwargs) -> HttpResponse:
# Return a form to the user where they can customize the registration
return render(request, 'registration.html')
def post(self, request, *args, **kwargs) -> HttpResponse:
# Perform the registration steps. Typically this would involve:
# 1. Register the platform in the tool
# 2. Register the tool in the platform
# 3. Update the platform registration with the client ID returned in step 2
# Return a page containing javascript that calls a special
# platform postMessage endpoint
return self.success_response()
Metadata
Release files for django-lti-dynamic-registration 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django_lti_dynamic_registration-0.1.2.tar.gz | 6.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_lti_dynamic_registration-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.4 kB
Release files / django_lti_dynamic_registration-0.1.2.tar.gz
| Download URL | django_lti_dynamic_registration-0.1.2.tar.gz |
|---|---|
| Size | 6.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
658f8593abeb2e3ede37f1f7640d66f4ec215e5620045a9a186d9c682d5f1d52
|
|
BLAKE2b-256 checksum How to use checksums |
67fd2db4e3d9bd5c27bbf72afc2de83b548138baf8da25b97b7a267aac3f4dbd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / django_lti_dynamic_registration-0.1.2-py3-none-any.whl
| Download URL | django_lti_dynamic_registration-0.1.2-py3-none-any.whl |
|---|---|
| Size | 7.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
46272b1734e8944823a22b165e44912b7df68d84bf84c96ce2c5753c6324bd12
|
|
BLAKE2b-256 checksum How to use checksums |
f950c2524f2d1bf98f7f9632fadbb58e78c3a1908c99393ca1001554c7b2186b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|