Skip to content

Commit

Permalink
Fix the login backend setting in the LTI Tool
Browse files Browse the repository at this point in the history
Production settings include multiple authentication backends
(e.g., Shibboleth and Google social login).
The backend must be set in the `login()` function call.
  • Loading branch information
markkuriekkinen committed Dec 22, 2022
1 parent 19d45e2 commit ecede47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lti_tool/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit ecede47

Please sign in to comment.