Skip to content

feat: add unified auth handoff flow - #1688

Draft
Zetazzz wants to merge 1 commit into
constructive-io:feat/oauth-provider-httpfrom
Zetazzz:feat/oauth-sso-handoff
Draft

feat: add unified auth handoff flow#1688
Zetazzz wants to merge 1 commit into
constructive-io:feat/oauth-provider-httpfrom
Zetazzz:feat/oauth-sso-handoff

Conversation

@Zetazzz

@Zetazzz Zetazzz commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

Summary

  • converge reusable-session, local password, registration, and Provider success on one cryptographically random Site handoff
  • redirect only to the transaction-restored exact HTTPS callback with handoff and Site state, with no-store and sensitive-query redaction
  • add Site-server redemption through the existing routed API-key/service-principal boundary, returning a distinct Site-local credential and verified return target
  • forward existing credential kind, token, principal, and API provenance claims through Express Context DB calls

Database contract

  • completion wrappers receive only the SHA-256 bytea digest and atomically create the one-minute handoff
  • redeem_sso_handoff(bytea) reads the existing routed API and authenticated service-principal claims, validates Tenant/Site/transaction bindings, issues the Site credential, and consumes on successful issuance
  • no SSO-specific runtime secret or possession-only redemption path is introduced

Validation

  • GraphQL server: 20 suites, 176 tests
  • Express Context: 5 suites, 36 tests
  • GraphQL server and Express Context builds
  • package lint (existing warnings only)
  • git diff --check

Stack

Depends on #1687. This PR intentionally targets feat/oauth-provider-http.

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