Files
edx-platform/lms/templates/lti_provider/user-auth-error.html
Arunmozhi 5b2f012acc feat: link LTI Provider launches to authenticated users
With this change, the platform users who access content via LTI will be 
automatically linked to their platform account instead of the new (anonymous) 
one. The following conditions need to be met:
* The `LtiConsumer` should be configured to auto-link the users via email.
* The LTI Consumer should share the user's email using the
`lis_person_contact_email_primary` parameter in the LTI Launch POST data.

This also replaces the one-to-one relationship of the `User` and `LtiUser` 
with one-to-many. This way, multiple `LtiUser` objects can refer to the same 
`edx_user`. With the auto-linking, multiple LTI Consumers can create 
independent `LtiUser` objects with the same `edx_user`.

Co-authored-by: Piotr Surowiec <piotr@surowiec.it>
2023-11-13 19:38:37 +01:00

33 lines
987 B
HTML

<%page expression_filter="h" />
<%namespace name='static' file='../static_content.html'/>
<%!
from django.utils.translation import gettext as _
from openedx.core.djangolib.markup import HTML, Text
%>
<%inherit file="../main.html" />
<section class="outside-app">
<h1>
${Text(_("There was an error when loading this module!"))}
</h1>
<p>
${Text(_("This module is available only for users who are signed into {platform}. "
"Kindly sign in and refresh this page to load the content."
)).format(
platform=HTML("<em>{}</em>").format(static.get_platform_name())
)}
</p>
<p class="my-3">
<strong>${_("NOTE:")}</strong>
${Text(_(
"The email used to sign into this platform and {platform} should be the same."
)).format(
platform=HTML("<em>{}</em>").format(static.get_platform_name())
)}
</p>
<p class="mt-3">
<a class="btn btn-primary" href="${login_link}" target="_blank">${_("Sign in")}</a>
</p>
</section>