This bug was apparently also found in older 4.x version (https://moodle.org/mod/forum/discuss.php?d=443389) and was supposed to be fixed in https://tracker.moodle.org/browse/MDL-77077 but im seeing this still when testing with Moodle 4.3.7+. I cloned the MOODLE_403_STABLE branch.
My JWKS come from an Azure Key Vault and technically the key is not bound to a single algorithm. (RS256 or RS512, work both) so if i can prevent it I would not want to add the alg to the JWK.
Is this something that can be fixed again?
Below an example of a key from my keyset url and the stacktrace in moodle