Patch Changes
-
#240
0061270Thanks @agent-think! - Fix worker crash (HTTP 500) when the/tokenrequest sends a malformed
Content-Typeheader. The endpoint previously used a looseincludes()check,
so a header such asapplication/json, application/x-www-form-urlencodedpassed
validation and then causedrequest.formData()to throw. The media type is now
parsed strictly (parameters are stripped and the exact media type is compared),
and form parsing is guarded so invalid bodies return a400 invalid_request
instead of crashing the worker. -
#246
771a207Thanks @agent-think! - Validate the RFC 8707 resource parameter before consuming an authorization code, so a token request rejected withinvalid_targetcan be retried with an allowed resource. -
#249
f0f5dc0Thanks @mattzcarey! - Preserve a subject access token's scope when issuing tokens through OAuth 2.0 Token Exchange.