(backend) accept form-urlencoded on the user token endpoint

Accept `application/x-www-form-urlencoded` requests on the user
token endpoint, in addition to the existing JSON support.

This aligns the endpoint with the OAuth 2.0 specification for token
endpoint requests (RFC 6749, sections 3.2 and 4.4.2), so standard
OAuth 2.0 client libraries can call it without any customization,
while keeping backward compatibility with existing JSON clients.
This commit is contained in:
lebaudantoine
2026-08-19 11:14:46 +02:00
committed by aleb_the_flash
parent a82023f8b0
commit d005f202c6
4 changed files with 185 additions and 0 deletions
+4
View File
@@ -8,6 +8,10 @@ and this project adheres to
## [Unreleased]
### Changed
- ✨(backend) accept form-urlencoded on the user token endpoint
### Fixed
- 📝(docs) fix minor typos in comments and docstrings