Skip to main content

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

Download files

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

Source Distribution

django_lti_dynamic_registration-0.1.2.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

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

File metadata

File hashes

Hashes for django_lti_dynamic_registration-0.1.2.tar.gz
Algorithm Hash digest
SHA256 658f8593abeb2e3ede37f1f7640d66f4ec215e5620045a9a186d9c682d5f1d52
MD5 801e77993301a029c3729290586edd95
BLAKE2b-256 67fd2db4e3d9bd5c27bbf72afc2de83b548138baf8da25b97b7a267aac3f4dbd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_lti_dynamic_registration-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 46272b1734e8944823a22b165e44912b7df68d84bf84c96ce2c5753c6324bd12
MD5 f86904465d227fdf7e631293c56f1eb5
BLAKE2b-256 f950c2524f2d1bf98f7f9632fadbb58e78c3a1908c99393ca1001554c7b2186b

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 files

0.1.1

2 files

0.1

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page