Bug with accessing LTI tool's public key set?

svickers2
Community Contributor

My explorations suggest that Canvas is failing to find a public key from a URL which returns a JWK Set with a content-type header of "application/jwk-set+json" as per the JSON Web Key (JWK) spec (see https://datatracker.ietf.org/doc/html/rfc7517).  I get an error of

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

When the content-type header used by the public key endpoint is "application/json" the error does not occur.

Has anyone else encountered this issue?

Thanks.

Labels (1)