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:
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: