None of the docs tell you this but the json for the public key has to be formatted as an array of objects with the key “keys”. You can’t just send the object, even though there might only be 1 key.
None of the docs tell you this but the json for the public key has to be formatted as an array of objects with the key “keys”. You can’t just send the object, even though there might only be 1 key.
If you are running your app on localhost and while configuring your app in Moodle you provide a url to your public key on localhost, it will always fail when you request a token. It has to be truly public. Workaround: paste the RSA key in directly during config.
If you are running your app on localhost and while configuring your app in Moodle you provide a url to your public key on localhost, it will always fail when you request a token. It has to be truly public. Workaround: paste the RSA key in directly during config.