feat(verify): adapter (cookie) conformance path — harness adapter app + cookie cases#11
Merged
Conversation
…adapter - NODE_ENV=development so the API publishes its dev JWKS and the adapter/SDKs can verify tokens (the JWKS-in-test 500 is tracked separately) - ISSUER=http://auth-api:5312 so token iss matches the adapter's authServerUrl
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds the adapter (cookie) path to the
seamless verifyconformance harness, proving the real@seamless-auth/expressSDK + cookie bridge work end-to-end against the auth API. Complements the API path already on main.Included
verify/adapter-app/): a minimal adopter backend that mounts the real@seamless-auth/expresswith a capture transport + a/__capturedreadout, so the harness can read OTP/magic-link codes the adapter strips before responding to the browser. Dockerized; replaces the starter-express adapter in the verify compose.adapterPlaywright project — anadapterActor(cookie-persisting request context),adapterFlows, and two green cases:register → verify email → login-OTP → seamless-access/refresh cookies → /users/me (200)logout → 204 → session cleareddevelopment(so it publishes the dev JWKS the adapter verifies) and alignISSUERto the adapter'sauthServerUrl.Run
Reproducible now that fells-code/seamless-auth-api#48 (makes
LOGIN_METHODSauthoritative) is merged — the adapter login-OTP flow needsemail_otpenabled via env.Follow-ups (not in this PR)
adapterproject into the defaultseamless verifyrun (currently runs--project=api) and adddown -vfor a deterministic seed.403on poll (narrowed to a likely user-agent-forwarding difference between request and poll) — under investigation, not yet covered.Verified
CLI builds clean; both adapter cases pass live against the stack.