Skip to main content

Add-on to django-lti to support dynamic registration.

Project description

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()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Built Distribution

File details

Details for the file django_lti_dynamic_registration-0.1.1.tar.gz.

File metadata

File hashes

Hashes for django_lti_dynamic_registration-0.1.1.tar.gz
Algorithm Hash digest
SHA256 46d4ce3ad0a71fd32cd256dd11bd91840ed9d3d43184ff3ee7dbb99ed1942eb7
MD5 9b4f09cdd618391bc0126a451a2164d6
BLAKE2b-256 26c6fbd2fedf686cc3c39532a4a75b8cb50529300684fff45f9c2449026e3ee0

See more details on using hashes here.

File details

Details for the file django_lti_dynamic_registration-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for django_lti_dynamic_registration-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4ee3d481f22c11982b05f024bfd7418a00d12afc10724a9c3a20ab08d589d192
MD5 f5cc13737c64b2a3480fd923054d0898
BLAKE2b-256 0058b7857afa4c1535ceccb7fe6555b315f3bf1382105b213745a47aec017b58

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page