Resolve the "401 Unauthorized" error when using ScreenPal with the Moodle LMS

Resolve the "401 Unauthorized" error when using ScreenPal with the Moodle LMS

If you are using the ScreenPal LTI v1.3 application with a self-hosted instance of Moodle, you may encounter a "401 Unauthorized" error message when ScreenPal tries to synchronize data with your Moodle Gradebook. This can occur when a student finishes a quiz, for example.

This error occurs when Apache (a common web server on the Bitnami software platform recommended by Moodle for self-hosting) strips out the "HTTP_AUTHORIZATION" header for incoming requests. This header is required in order for the ScreenPal LTI app to correctly synchronize with Gradebook. 

To fix this issue, you must modify the httpd.conf file on the machine where Moodle is hosted.  The location of this file may vary from machine to machine. One common location for the file is: /opt/bitnami/apache/conf/httpd.conf
You can also typically find the file by opening a Command prompt on the machine and running the following command: find / -iname “httpd.conf” 2>/dev/null

1. After you locate the httpd.conf file, open it and add the following lines to the bottom: 
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1

SetEnvIf Content-Type "(.*)" HTTP_CONTENT_TYPE=$1

SetEnvIf Accept "(.*)" HTTP_ACCEPT=$1


2. Next, restart Apache.
If the location of the httpd.conf file was /opt/bitnami/apache/conf/httpd.conf, you can likely locate the restart script at /opt/bitnami/scripts/apache/restart.sh.
​
After Apache is restarted, you should be able to sucessfully use the ScreenPal LTI application to sync ScreenPal quiz scores to your Gradebook.

    • Related Articles

    • Sync ScreenPal Quiz Scores with the Blackboard LMS Gradebook

      When you are part of a Team Plan and your administrator has configured ScreenPal with Blackboard learning management system (LMS) using the LTI v1.3 plug-in, you can embed ScreenPal quizzes in your Blackboard assignments and then automatically sync ...
    • Sync your ScreenPal quiz scores to your LMS Gradebook

      When you are a member of a Team Plan and your administrator has configured ScreenPal with your learning management system (LMS) using our LTI 1.3 plug-in, you can sync ScreenPal quiz grades to your LMS Gradebook. This functionality currently works ...
    • I receive an error when I try to re-sync ScreenPal quiz scores to my LMS Gradebook

      When you create a quiz in ScreenPal, sync those quiz scores with your learning management system (LMS) Gradebook, and then make later adjustments to your students' grades within ScreenPal, you might receive an error when you attempt to re-sync the ...
    • Error while encoding (Windows)

      The "Error while encoding" message indicates that an issue occurred either during encoding or the subsequent save or upload process. This is most commonly caused by firewall or anti-virus software blocking our app from accessing necessary online ...
    • AI Video Generator error messages

      When you use the ScreenPal AI Video Generator to create original videos from a text prompt, you may see an error message displayed at the top of the page. Not to worry! When you see one of the following errors, just click Try Again to retry the ...