LTI 1.3 | JWT Error

Jump to solution
KylanJohnson
Community Member

I am trying to add an assignment and submit as an external tool. I have selected the content from the tool, and when I am trying to deeplink, it throws an error, saying 

{"errors":{"jwt":[{"attribute":"jwt","type":"JSON::JWK::Set::KidNotFound","message":"JSON::JWK::Set::KidNotFound"},{"attribute":"jwt","type":"JWT verification failure","message":"JWT verification failure"}]}}

 

So I tried using JWK instead of Url.

{"keys":[{"kty":"RSA","alg":"RS256","use":"sig","e":"AQAB","n":"0Ll6DEpUsvmlHTlKZD_IozrQfRvM3RFoncjMUjxTOsFDI7t2Qx_TrGzqwR3tjfNcbyym5v9SmSbg4-EQ1hr-cSY_NL6bIT8QT-tb4D-ybj7CYJK7JAfaSX3I5kTuhQcKy2pxVtVuXOrm8VZR7ehtqsZH9tvuEXsgjh2IW0GL3MJ0yfhscd_MDu0BbqGxXaaA_Fs2CGMakWLrhLbK6vnxEOwgz1Vf--cA5YN1-qOgMqRMvTfuQIv1qTSTvXZmfRk790zACHOVMjftao2TRxN2PqF9TshRqqGjzQYo1VmDhcDxBKC1iXkjDowk-V7tBmjfIYxs7jDjABmTbzY0ZRxXGw","kid":"b03a385e7a13e4d1aaa1edf86c9fae047b91ec399a1887862e303e47163d651d"}]}

when I try to add this, I am getting an error there as well.  

I have attached the screenshot of the error which reads "Type error: Cannot destructure property 'developer_key' of 'e' as it is undefined. %"

0 Likes
1 Solution
SomDaveYoung
Community Member

So, you're using an array of keys here rather than a single key. If you use this it'll accept the input:

{"kty":"RSA","alg":"RS256","use":"sig","e":"AQAB","n":"0Ll6DEpUsvmlHTlKZD_IozrQfRvM3RFoncjMUjxTOsFDI7t2Qx_TrGzqwR3tjfNcbyym5v9SmSbg4-EQ1hr-cSY_NL6bIT8QT-tb4D-ybj7CYJK7JAfaSX3I5kTuhQcKy2pxVtVuXOrm8VZR7ehtqsZH9tvuEXsgjh2IW0GL3MJ0yfhscd_MDu0BbqGxXaaA_Fs2CGMakWLrhLbK6vnxEOwgz1Vf--cA5YN1-qOgMqRMvTfuQIv1qTSTvXZmfRk790zACHOVMjftao2TRxN2PqF9TshRqqGjzQYo1VmDhcDxBKC1iXkjDowk-V7tBmjfIYxs7jDjABmTbzY0ZRxXGw","kid":"b03a385e7a13e4d1aaa1edf86c9fae047b91ec399a1887862e303e47163d651d"}

One interesting thing here though is that after you enter the JWKS and save, the next time you edit the developer key it will revert to Public JWK. 

View solution in original post

0 Likes