dmitry-viskov / pylti1.3-flask-example

PyLTI1p3 Flask usage example
MIT License
19 stars 29 forks source link

return keys directly instead of keys object #14

Open mschwaig opened 2 years ago

mschwaig commented 2 years ago

This change helped me to get this example project to work with Moodle.

Without this change the score-related API calls did not work. However if I undo the change they still work, so I think maybe Moodle remembered the keys once and that prevents the issue from triggering now.

I suspect triggering the bug and then confirming the fix might require a fresh Moodle instance.

Without this change I get somehting like

Exception - Argument 1 passed to Firebase\\JWT\\JWK::parseKeySet() must be of the type array, null given