Closed ChiefGnome closed 3 years ago
Hello! Did you set your application URL as a redirect URL in canvas? You should set https://xxxxxxxxxxxxxxx/lti
as a redirect URL.
Also have in mind that changes made to developer keys are not applied to the apps, you have to delete the apps and recreate them in order for the changes to be applied.
Hello! Thank you for the fast reply! I have added the correct redirect URI and made some other changes, I guess now I am one step closer... Canvas now reports:
while(1);{"errors":[{"message":"An error occurred.","error_code":"internal_server_error"}],"error_report_id":90}
If I remove the URI I get the previous error.
Ahh yes, this error is common on self hosted Canvas instances, it is often caused by a misconfiguration during Canvas installation.
How did you install Canvas? You should consider a few things:
I use Bitnami Canvas, so this explains it. Thank you! What would be the easiest way to get canvas running, to just test the LTI connection?
I believe that going through the Production Installation of Canvas might be the most reliable way. Have in mind that you need to do both the Cache configuration and Dynamic settings configuration in order for LTI to work properly.
I'll be closing this issue for now since the initial problem was identified and it is not related to Ltijs.
Hi @Cvmcosta , can you send a config example for me, I have set config but my canvas still log error: {"message":"An error occurred.","error_code":"internal_server_error"}
This error still indicates issues with the Canvas Installation. How is your Canvas set up?
I install it from source.
This is dynamic_settings.yml file
production:
config:
canvas:
# environment
canvas:
encryption-secret: "astringthatisactually32byteslong"
signing-secret: "astringthatisactually32byteslong"
datadog-rum:
application_id: "27627d1e-8a4f-4645-b390-bb396fc83c81"
client_token: "a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6q7r"
sample_rate_percentage: 0.0 # Between 0.0 and 100.0; 0.0 disables the feature.
live-events:
aws_endpoint: http://kinesis.canvaslms.docker
kinesis_stream_name: live-events
live-events-subscription-service:
app-host: "http://les.docker"
sad-panda: null
math-man:
base_url: 'http://mathman.docker'
use_for_svg: 'false'
use_for_mml: 'false'
rich-content-service:
app-host: "rce.docker"
common_cartridge_viewer:
base_url: "http://localhost:3300"
fullstory:
sampling_rate: '0.0' # randomly inject this fraction of the time
app_key: 'xyzzy'
# another service
inst-fs:
app-host: "http://api.instfs.docker"
# this is just "super-sekret-value", base64-encoded:
secret: "c3VwZXItc2VrcmV0LXZhbHVlCg=="
pandata:
ios-pandata-key: IOS_pandata_key
ios-pandata-secret: teamrocketblastoffatthespeedoflight
android-pandata-key: ANDROID_pandata_key
android-pandata-secret: surrendernoworpreparetofight
private: canvas: auditors.yml: | write_paths:
store: canvas: lti-keys:
# to generate a new key, run the following in a Canvas console:
#
jwk-past.json: "{\"kty\":\"RSA\",\"e\":\"AQAB\",\"n\":\"uX1MpfEMQCBUMcj0sBYI-iFaG5Nodp3C6OlN8uY60fa5zSBd83-iIL3n_qzZ8VCluuTLfB7rrV_tiX727XIEqQ\",\"kid\":\"2018-05-18T22:33:20Z\",\"d\":\"pYwR64x-LYFtA13iHIIeEvfPTws50ZutyGfpHN-kIZz3k-xVpun2Hgu0hVKZMxcZJ9DkG8UZPqD-zTDbCmCyLQ\",\"p\":\"6OQ2bi_oY5fE9KfQOcxkmNhxDnIKObKb6TVYqOOz2JM\",\"q\":\"y-UBef95njOrqMAxJH1QPds3ltYWr8QgGgccmcATH1M\",\"dp\":\"Ol_xkL7rZgNFt_lURRiJYpJmDDPjgkDVuafIeFTS4Ic\",\"dq\":\"RtzDY5wXr5TzrwWEztLCpYzfyAuF_PZj1cfs976apsM\",\"qi\":\"XA5wnwIrwe5MwXpaBijZsGhKJoypZProt47aVCtWtPE\"}"
jwk-present.json: "{\"kty\":\"RSA\",\"e\":\"AQAB\",\"n\":\"uX1MpfEMQCBUMcj0sBYI-iFaG5Nodp3C6OlN8uY60fa5zSBd83-iIL3n_qzZ8VCluuTLfB7rrV_tiX727XIEqQ\",\"kid\":\"2018-06-18T22:33:20Z\",\"d\":\"pYwR64x-LYFtA13iHIIeEvfPTws50ZutyGfpHN-kIZz3k-xVpun2Hgu0hVKZMxcZJ9DkG8UZPqD-zTDbCmCyLQ\",\"p\":\"6OQ2bi_oY5fE9KfQOcxkmNhxDnIKObKb6TVYqOOz2JM\",\"q\":\"y-UBef95njOrqMAxJH1QPds3ltYWr8QgGgccmcATH1M\",\"dp\":\"Ol_xkL7rZgNFt_lURRiJYpJmDDPjgkDVuafIeFTS4Ic\",\"dq\":\"RtzDY5wXr5TzrwWEztLCpYzfyAuF_PZj1cfs976apsM\",\"qi\":\"XA5wnwIrwe5MwXpaBijZsGhKJoypZProt47aVCtWtPE\"}"
jwk-future.json: "{\"kty\":\"RSA\",\"e\":\"AQAB\",\"n\":\"uX1MpfEMQCBUMcj0sBYI-iFaG5Nodp3C6OlN8uY60fa5zSBd83-iIL3n_qzZ8VCluuTLfB7rrV_tiX727XIEqQ\",\"kid\":\"2018-07-18T22:33:20Z\",\"d\":\"pYwR64x-LYFtA13iHIIeEvfPTws50ZutyGfpHN-kIZz3k-xVpun2Hgu0hVKZMxcZJ9DkG8UZPqD-zTDbCmCyLQ\",\"p\":\"6OQ2bi_oY5fE9KfQOcxkmNhxDnIKObKb6TVYqOOz2JM\",\"q\":\"y-UBef95njOrqMAxJH1QPds3ltYWr8QgGgccmcATH1M\",\"dp\":\"Ol_xkL7rZgNFt_lURRiJYpJmDDPjgkDVuafIeFTS4Ic\",\"dq\":\"RtzDY5wXr5TzrwWEztLCpYzfyAuF_PZj1cfs976apsM\",\"qi\":\"XA5wnwIrwe5MwXpaBijZsGhKJoypZProt47aVCtWtPE\"}"
Hi @Cvmcosta, I have fixed this by turn on Redis cache. Thank you for your support
I can register my tool with Moodle, but if I try to register it with my self hosted canvas I get the following error message:
while(1);{"status":"bad_request","message":"Invalid redirect_uri","error_report_id":46}
The target link URL has been added to the Canvas developer key.
The debug log shows the request from
canvas.instructure.com
, but nothing else.