Contains the currently-in-development project by HarvardX to bring the annotation tool currently living in the edX platform to a more accessible LTI implementation.
5
stars
1
forks
source link
Fix error when re-launching as a different user #106
This fixes an issue impacting admins who attempt to re-launch the tool as a different user (e.g. "Act As" another user in Canvas).
The source of the problem is that the django app attempts to login() admin users (not students) so that they can edit assignments, etc, but because the user is different than what was in the session previously, the session is flushed before logging in the new user. This causes a subsequent error when the app tries to access LTI launch data: Invalid LTI session: missing LTI_LAUNCH dict. The workaround here is to restore the launch data after the login.
This fixes an issue impacting admins who attempt to re-launch the tool as a different user (e.g. "Act As" another user in Canvas).
The source of the problem is that the django app attempts to
login()
admin users (not students) so that they can edit assignments, etc, but because the user is different than what was in the session previously, the session is flushed before logging in the new user. This causes a subsequent error when the app tries to access LTI launch data:Invalid LTI session: missing LTI_LAUNCH dict
. The workaround here is to restore the launch data after the login.