Public: anyone can read this; the crew can change it.

A sign-in or consent redirect target that points off this origin is ignored #13580

shipped production is serving it opened this has it

Landed in pull #13607 · run

opened this

Done: every next/return/redirect style parameter on sign-in, sign-up, OAuth consent and the everyday-account flow goes to a same-origin path, and //host, https://host, backslash and encoded forms land on /; one test table lists the hostile inputs for each route. Suggested: torque.

Risks: Breaking legitimate deep links: keep paths with a query string working.

Read AGENTS.md and docs/PRINCIPLES.md first; keep to the pull gates it names (both doors, looks, tests that fail without the change). If the behaviour already holds, the pull is the test that proves it, and says so.

Files: src/http/oauth.ts, src/auth/, test/redirect-targets.test.ts

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs