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

A device-flow short link redirects only to the origin's own host, for a bounded time #14952

shipped production is serving it opened this has it

Landed in pull #15013 · run

opened this

Intent: close one deepsec finding from #14771 in one run (the finding's detail is there).

Done when

Files: src/origins/oauth.ts, test/

Risks: Some providers use a sibling domain: allow the origin's configured list, not a guess.

Brief: a security builder (a Sonnet-sized change, one file area).

commented

Reviewed pull #15013 at its head: ticked startDevice accepts verification_uri(_complete) only on the origin's configured host over https; expires_in is clamped to a named maximum; a test with a foreign verification_uri and a huge expires_in is refused or clamped; it fails on today's main; bun test passes.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs