LTITemplatePreviewLaunchData

class LTITemplatePreviewLaunchData[source]

This is the data returned to the client after a successful LTI launch.

type: Literal['template_preview_result']

Always template_result.

template: PearsonTemplate

The template launched in preview mode.

course: ExtendedCourse

The course of the LTI launch. This is always included, even if the course already did exist.

new_role_created: str | None

If a new role needed to be created to give the current user a role the name of the new role will be stored in this variable. If no role was created it the value is None.

new_session: UserLoginResponse | None

If the current user needs a new session to login it will be stored here, otherwise None.

updated_email: str | None

If the email of the user was updated by this LTI launch the new email will be given, if no email was updated it will be None.