ltiapi.views#

Module Contents#

Classes#

RegisterConsumerView

This View implements LTI Advantage Automatic registration. It supports GET for the user to control the configuration steps and POST, which starts the consumer configuration.

Functions#

oidc_jwks

JWT signature delivery endpoint

oidc_login

This just verifies that the requesting consumer is allowed to log in and tells the consumer, where to go next. The actual user login happens when the LTI launch is performed.

lti_launch

Implements the LTI launch. It logs the user in and redirects them according to the requested launch type.

login_lms

API#

class ltiapi.views.RegisterConsumerView#

Bases: django.views.generic.DetailView

This View implements LTI Advantage Automatic registration. It supports GET for the user to control the configuration steps and POST, which starts the consumer configuration.

template_name#

‘ltiapi/register_consumer_start.html’

end_template_name#

‘ltiapi/register_consumer_result.html’

model#

None

context_object_name#

‘link’

get_template_names() List[str]#
async get(request: django.http.HttpRequest, *args, **kwargs)#
async post(request: django.http.HttpRequest, *args, **kwargs)#

Register the application as a provider via the LTI registration flow.

The configuration flow is well explained at https://moodlelti.theedtech.dev/dynreg/

async ltiapi.views.oidc_jwks(request: django.http.HttpRequest, issuer: Optional[str] = None, client_id: Optional[str] = None)#

JWT signature delivery endpoint

ltiapi.views.oidc_login(request: django.http.HttpRequest)#

This just verifies that the requesting consumer is allowed to log in and tells the consumer, where to go next. The actual user login happens when the LTI launch is performed.

ltiapi.views.lti_launch(request: django.http.HttpRequest)#

Implements the LTI launch. It logs the user in and redirects them according to the requested launch type.

ltiapi.views.login_lms(request)#