dotnet / dotnet/aspnetcore

DBSC: support site scope registration from subdomains

Open
#67,827 1 comment 0 reactions 0 assignees View on GitHub
area-auth
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 6h
Merged PRs (30d)
290

Description

### Is there an existing issue for this?

- [x] I have searched the existing issues

### Is your feature request related to a problem? Please describe the problem.

The experimental DBSC support can emit a valid site-scoped session when registration is served from the registrable-domain root, such as `https://example.com`. It cannot support registration served from a subdomain, such as `https://api.example.com`, requesting root site scope at `https://example.com`.

The current scope origin is derived from the registration request origin. With `include_site: true`, Chromium requires the scope origin host to be the registrable-domain root, so the subdomain topology needs additional server configuration and root-host authorization.

### Describe the solution you'd like

Design support for subdomain registration requesting root site scope, including:

- Explicit configuration for the DBSC scope origin, separate from the registration request origin.
- Public Suffix List/registrable-domain validation so configured origins cannot widen scope beyond the registration site.
- An ownership and composition model for the root `/.well-known/device-bound-sessions` resource.
- Configuration of the well-known response's `registering_origins` entries for authorized registration subdomains.
- Multi-host Chromium integration tests covering registration on a subdomain, root site scope, sibling destinations, refresh initiators, and cookie-domain variants.

Cookie `Domain` should remain independently configured; enabling site scope must not automatically widen cookie applicability.

### Additional context

This is a follow-up to #66478 and dotnet/aspnetcore#67388. Root-host registration with site scope remains valid and does not require the `registering_origins` well-known check. This issue covers only the deferred subdomain-to-root topology.

Contributor guide

Open the contributing guide

Research direction

Review follow-up issues #66478 and dotnet/aspnetcore#67388 first to understand the existing DBSC scope behavior. Define the configuration and well-known resource ownership model, then add multi-host Chromium integration tests for subdomain registration, root scope, sibling destinations, refresh initiators, and cookie-domain variants.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
authentication, backend, security
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.