Skip to content

feat(webchat): verify workspace member links - #53

Merged
mrgoonie merged 2 commits into
mainfrom
codex/webchat-member-proof-2242
Nov 8, 2026
Merged

mrgoonie merged 2 commits into
mainfrom
codex/webchat-member-proof-2242

Conversation

@mrgoonie

@mrgoonie mrgoonie commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

Signed-in webchat visitors need a supported way to prove their chat identity belongs to a workspace member before a credential request can be offered. This adds a separate workspace-link form, forwards the one-time proof through the Node/Workers and PHP adapters with a fresh authenticated session, and refuses proof codes in chat payloads. A member must still confirm the account in the workspace.

The UI appears only when the host opts in and the Gateway/CCP advertise the separately gated capability. The Gateway and CCP implementation is pending in nextlevelbuilder/dewee#2242; this PR must not be treated as deployed end-to-end support until that dependency and the real staging journey are verified. Refs #1 and nextlevelbuilder/dewee-web-v2#133.

Validation on the merged base: pnpm typecheck; PHP_BIN=C:/tools/php/php.exe pnpm test (415 passed, 5 skipped). Focused tests cover Node, PHP, signed-in/anonymous widget states and keeping proof out of chat. Independent review covered the proof path and resulted in added page-context and handoff guards. Gateway PostgreSQL/SQLite tests and the complete browser journey are tracked in the dependent change.

@mrgoonie
mrgoonie marked this pull request as ready for review November 8, 2026 16:52
@mrgoonie
mrgoonie merged commit b1dc6df into main Nov 8, 2026
3 checks passed
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