-
Bug
-
Resolution: Unresolved
-
Trivial
-
None
-
4.4.5, 4.5.1, 5.0
-
1
Kindly reported by Tom in his forum post here: https://moodle.org/mod/forum/discuss.php?d=463150
By not actively setting the content-type header in the token endpoint, we're leaving the header set by the lib/setup.php script (see https://github.com/moodle/moodle/blob/aa543e8c3985d22e0f3ff4e2a207e2e63a83b2ff/lib/setup.php#L953). That's obviously not what we want here, given the return is application/json. The relevant section of the IMS Security Framework is 4.1.1.1 Using a JWT as an Access Token. This hasn't caused major issues (or even any reports that I know of), but I can see how that might be a problem if the client code was being strict with content type parsing.
Should be a trivial, one liner fix.
- has been marked as being related by
-
MDL-72080 Content-Type wrong for core_get_fragment
-
- Closed
-