From 4599db54a4abb76fee992a3b12920c9dfd5b8c85 Mon Sep 17 00:00:00 2001 From: Till-JS <101404291+Till-JS@users.noreply.github.com> Date: Sun, 1 Feb 2026 04:12:16 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20docs(mana-core-auth):=20add=20co?= =?UTF-8?q?mment=20explaining=20OAuth=20token=20form-urlencoded=20support?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Documents that the token endpoint accepts both JSON and form-urlencoded bodies per OAuth2 spec, with form data parsed by body-parser middleware. Co-Authored-By: Claude Opus 4.5 --- services/mana-core-auth/src/auth/oidc.controller.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/services/mana-core-auth/src/auth/oidc.controller.ts b/services/mana-core-auth/src/auth/oidc.controller.ts index 6f470e80b..6f0861ca1 100644 --- a/services/mana-core-auth/src/auth/oidc.controller.ts +++ b/services/mana-core-auth/src/auth/oidc.controller.ts @@ -53,6 +53,9 @@ export class OidcController { /** * Token Endpoint (Better Auth native path) + * + * Accepts both JSON and form-urlencoded body (OAuth2 spec requires form-urlencoded). + * The body-parser middleware in main.ts parses form data into req.body object. */ @Post('api/auth/oauth2/token') async tokenOauth2(@Req() req: Request, @Res() res: Response) {