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 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 ...
    • Share Videos using the ScreenPal Google Chrome extension

      The ScreenPal extension for Google Chrome records enables you to record videos from any text box within your browser and insert them into these text boxes. First, click here for more information about how to install the ScreenPal extension. Click ...
    • Set up ScreenPal LTI v1.3 with Moodle

      How to set up ScreenPal LTI v1.3 with Moodle The ScreenPal LTI screen recorder integrates with many learning management systems. Use this article for the setup and use of our LTI v1.3 app within the Moodle LMS for administrators and teachers. For ...
    • Set up ScreenPal LTI v1.1 with Moodle

      How to set up ScreenPal LTI v1.1 with Moodle The ScreenPal LTI screen recorder integrates with many learning management systems. This article will help with the set up and use of our LTI v1.1 app within the Moodle LMS for administrators and teachers. ...
    • Resolve the error stating "Sorry that recording is corrupted. Do you want to delete it?"

      Recordings can become corrupted when your original recording files are affected in an unexpected way. When a video is corrupted, you may receive an error message similar to the following: "Sorry we failed to open that video project. It looks ...