Device Bound Session Credentials (DBSC) JavaScript API
- Category
- Security
- Type
- New or changed feature
- Status
- Proposed (Chrome Proposed)
- Intent stage
- None
Summary
Allows websites and Identity Providers to synchronously check the registration state of a Device Bound Session Credentials (DBSC) session. DBSC provides cryptographic protection against account hijacking by binding sessions to the user's device, but currently relies on asynchronous HTTP headers. This API provides deterministic guarantees of session establishment before granting access, enabling secure SSO handoffs and synchronous cookie issuance
Motivation
When a server instructs the browser to start a DBSC session via HTTP headers, the frontend application is unaware of exactly when this registration completes. This asynchronous gap leads to two main challenges: 1. Premature Cookie Issuance: Relying Parties (RPs) must issue unbound authentication cookies immediately or implement complex polling mechanisms to wait for registration. 2. SSO Handoff Vulnerabilities: An Identity Provider (IdP) completing a login flow may redirect the user back to the RP before the IdP's own DBSC session is fully registered on the device.
Standards & signals
- Firefox: No signal
- Safari: No signal
- Web developers: No signals
Ecosystem
- Web Platform Tests: https://wpt.fyi/results/?q=device-bound-session-credentials-dbsc-javascript-api
- Chrome Platform Showcase: https://chrome-platform-showcase.paulkinlan-ea.deno.net/features
- GenDN reference: https://gendn.paulkinlan-ea.deno.net/features
- chrome.dev demos search: https://www.google.com/search?q=site%3Achrome.dev+Device%20Bound%20Session%20Credentials%20(DBSC)%20JavaScript%20API
- MDN Web Docs: https://developer.mozilla.org/en-US/search?q=Device%20Bound%20Session%20Credentials%20(DBSC)%20JavaScript%20API
- Baseline status: https://webstatus.dev/?q=Device%20Bound%20Session%20Credentials%20(DBSC)%20JavaScript%20API
Explainers: https://github.com/explainers-by-googlers/dbsc-js-api