Skip to content

Commit 9ffd7eb

Browse files
committed
test(plugin-auth): ledger the oauth-provider rotate-keys route 1.7.12 publishes
@better-auth/oauth-provider 1.7.12 registers POST /oauth2/client/rotate-keys, so the catch-all now publishes it. The handler refuses unless the plugin is given allowClientKeyRotation, which auth-manager does not set. Claude-Session: https://claude.ai/code/session_011TdZ8GjixNZFLz1xJD9zzK Co-authored-by: Claude <noreply@anthropic.com>
1 parent 75aaf74 commit 9ffd7eb

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎packages/plugins/plugin-auth/src/auth-route-ledger.ts‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,13 @@ export const BETTER_AUTH_MOUNTED_SURFACE: readonly string[] = [
382382
'POST /api/v1/auth/get-session',
383383
'POST /api/v1/auth/link-social',
384384
'POST /api/v1/auth/oauth2/authorize',
385+
// `private_key_jwt` client key rotation. Added to `@better-auth/oauth-provider`
386+
// after 1.7.3 and published here since the 1.7.12 lift (#25096). The handler
387+
// refuses before it reads anything unless the plugin is given
388+
// `allowClientKeyRotation`, and `auth-manager.ts` does not set it, so every
389+
// call answers 403 `access_denied` ("Client key rotation is disabled"),
390+
// measured on this stack for #25096. Turning it on is its own decision.
391+
'POST /api/v1/auth/oauth2/client/rotate-keys',
385392
'POST /api/v1/auth/oauth2/client/rotate-secret',
386393
'POST /api/v1/auth/oauth2/consent',
387394
'POST /api/v1/auth/oauth2/continue',

0 commit comments

Comments
 (0)