instructure / canvas-lms

The open LMS by Instructure, Inc.
https://github.com/instructure/canvas-lms/wiki
GNU Affero General Public License v3.0
5.4k stars 2.42k forks source link

AWS Self-hosted canvas LMS | h5p lti v1.3 compatibility #2378

Open athyg opened 2 days ago

athyg commented 2 days ago

Summary:

Unable to configure H5P LTI v1.3 on self-hosted Canvas LMS (AWS) due to error when attempting to open the rails console in order to generate keys. Configuration instructions here: https://help.h5p.com/hc/en-us/articles/7506408987677-Setting-up-H5P-com-in-Canvas-LTI-1-3

Steps to reproduce:

I attempted to try and configure LTI 1.3; this involved running the following code in the rails console, in order to generate the keys: key = OpenSSL::PKey::RSA.generate(2048) puts key.public_key.to_jwk(kid: Time.now.utc.iso8601).to_json

Expected behavior: Rail console launches

Actual behavior: Error, which requires a code change to fix:

connects_to_hash = { ::Rails.env.to_sym => DatabaseServer.find(nil).connects_to_hash }

Additional notes: