Open jdmansour opened 5 months ago
Hi, when I use this package, the /api/lti_consumer/v1/public_keysets/lti_store/... endpoint returns an empy object {} insead of a public key.
/api/lti_consumer/v1/public_keysets/lti_store/...
{}
I found the reason is that the function model_to_dict omits all fields with editable=False, thus the lti_1p3_public_jwk field is not set. I posted one possible fix here: https://github.com/jdmansour/openedx-ltistore/tree/fix-lti13 .
model_to_dict
editable=False
lti_1p3_public_jwk
I just realized another way would be to remove editable=False and instead use exclude = ('lti_1p3_public_jwk',) in the admin, but I haven't tested it.
exclude = ('lti_1p3_public_jwk',)
Hi, when I use this package, the
/api/lti_consumer/v1/public_keysets/lti_store/...
endpoint returns an empy object{}
insead of a public key.I found the reason is that the function
model_to_dict
omits all fields witheditable=False
, thus thelti_1p3_public_jwk
field is not set. I posted one possible fix here: https://github.com/jdmansour/openedx-ltistore/tree/fix-lti13 .I just realized another way would be to remove
editable=False
and instead useexclude = ('lti_1p3_public_jwk',)
in the admin, but I haven't tested it.