From ecede4747ed2c7e7d91836e33093868d1d94ab7d Mon Sep 17 00:00:00 2001 From: Markku Riekkinen Date: Thu, 22 Dec 2022 14:59:26 +0200 Subject: [PATCH] Fix the login backend setting in the LTI Tool Production settings include multiple authentication backends (e.g., Shibboleth and Google social login). The backend must be set in the `login()` function call. --- lti_tool/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lti_tool/views.py b/lti_tool/views.py index 4940d10a4..e9b542f59 100644 --- a/lti_tool/views.py +++ b/lti_tool/views.py @@ -69,7 +69,7 @@ def post(self, request, *args, **kwargs): profile.save() self.profile = profile - login(self.request, self.user) + login(self.request, self.user, backend='django.contrib.auth.backends.ModelBackend') self.request.session["lti-launch-id"] = message_launch.get_launch_id() if message_launch.is_resource_launch():