Skip to content

fix(auth): host-bind HTTPS OAuth flow cookies - #3

Merged
goat-io merged 1 commit into
mainfrom
fix/host-bound-oauth-flow
Sep 25, 2026
Merged

goat-io merged 1 commit into
mainfrom
fix/host-bound-oauth-flow

Conversation

@goat-io

@goat-io goat-io commented Sep 25, 2026

Copy link
Copy Markdown
Owner

When Delphi publishes sites at <shortid>.<org>.azdelphi.com, a sibling site can try to set parent-domain cookies for the control-plane host. HTTPS sessions already use __Host- cookies, but OAuth flow cookies did not. Use host-bound __Host- flow cookies on HTTPS, including the Apple cross-site callback, while preserving the existing cookie for HTTP development.

Validation: go test ./... passed, including a new test that rejects the legacy parent-domain flow cookie and accepts the host-bound one.

@goat-io
goat-io merged commit 4f40ec3 into main Sep 25, 2026
3 checks passed
@goat-io
goat-io deleted the fix/host-bound-oauth-flow branch September 25, 2026 21:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant