@david David, would you please share a configuration instance with me? I tried many times for integrating Discourse with Moodle 3.10, but still no luck. Always said:
What have you entered in the “platform public key” setting? If I remember correctly, Moodle provides a JWKS url by default, which this plugin doesn’t support.
It should be possible to find the raw certificate somewhere, which you can copy/paste into Discourse,
@david Thank you for replying me. Yes. In Moodle. it showed Public keyset URL: https://mysiet.com/mod/lti/certs.php.
I opened this URL in browser, it showed as below:
I don’t think copying the n value will be enough - discourse needs the key in the PEM format. Long-term we might be able to add support for JWKs, but in the short term you should be able to get it working by converting the key.
There are some online tools which can convert from JWKs format into PEM. Here’s one. (Obviously I can’t guarantee the safety of these online tools, so make sure you only paste public information into them)
Once you have the PEM (starting with -----BEGIN PUBLIC KEY-----, then Discourse should accept it.