Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JWKS endpoint returns an empty object instead of the key #6

Open
jdmansour opened this issue Jan 11, 2024 · 0 comments
Open

JWKS endpoint returns an empty object instead of the key #6

jdmansour opened this issue Jan 11, 2024 · 0 comments

Comments

@jdmansour
Copy link

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

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant