Skip to content

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

@jdmansour

Description

@jdmansour

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions