Repository navigation
fix(scaffold): pin auth API v0.24.3 and templates v0.23.0 - #381
Merged
Merged
Conversation
…check adapters Part of #380
…r than the session Auth API 0.24.0 answers a step-up with an authenticator app enrolled after the session signed in with 401 step_up_unavailable. The auth client took that for an expired token, refreshed, retried and then cleared the session. It is now returned as is, and the step-up says to sign in again. The CLI commands e2e signs the owner in again after enrolling the app.
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.
Closes #380
New projects scaffold auth API v0.24.3 and the starter templates v0.23.0.
SEAMLESS_AUTH_API_VERSIONv0.23.0v0.24.3SEAMLESS_AUTH_API_COMMITafd4495cf05dc338f0f62a89e516e7dfb977b7e4bb5fdc2aSEAMLESS_AUTH_API_IMAGE_DIGESTsha256:c32b2e84...sha256:95fb964f0430215f75310aa311950ba024e166bdb7dfb6b8673c6230d3d6c999SEAMLESS_TEMPLATES_REFv0.22.1v0.23.0SEAMLESS_TEMPLATES_COMMIT0c0618e4a9945875b172aacbfbe17de724e8f1ba46edabecThe admin dashboard stays on v0.14.0, the current release.
Auth API v0.24.3
Brings the v0.24 security release to scaffolded stacks, and the OpenID Provider contract 4, so a scaffolded stack can run
@seamless-auth/oidc-provider0.5.x. Checked against what the CLI generates and calls:The production refusal of short or published service tokens does not apply: the scaffold runs the API with
NODE_ENV=developmentand generates its ownSEAMLESS_SERVICE_TOKEN.Magic links now need the code from the link fragment. Templates v0.23.0 read it (fix: read the magic link code from the fragment with the SDK's verify helpers seamless-templates#175).
/registration/registeranswers an address with a verified account as a new, unclaimed sign-up with nodeliveryblock. The owner bootstrap is unaffected:seamless owner-code, the scaffold smoke, the CLI e2e and quickstart scripts, and the verify harness all register an address with no account yet.seamless owner-codefor an owner whose account is already verified no longer gets a code from that route. fix(owner-code): sign in for the code when the owner is already verified #382 fixes that.Step-up only accepts an authenticator app enrolled before the session signed in, and answers a newer one with
401 step_up_unavailable. The auth client read that as an expired token: it refreshed, retried, and then cleared the session with "Your session ... was rejected after refreshing it".isStepUpUnavailableinsrc/core/stepUp.tsnow keeps that 401 away from the refresh path insrc/core/authClient.ts, and the step-up says to sign in again.scripts/cli-commands-e2e.shsigns the owner in again after enrolling the app, which is what failed the CLI commands job on the first run of this PR.Templates v0.23.0
Carries fells-code/seamless-templates#178 (closes fells-code/seamless-templates#177): the API starters move to
@seamless-auth/express0.27.0,@seamless-auth/fastify0.18.0 andseamless-auth0.7.0 for Go, Rust and Python, with theSameSite=Laxdefault and the Origin-to-Hostcheck. Also since v0.22.1: security headers and a CSP on the web starters (fells-code/seamless-templates#172), the production stage as the default Docker target (fells-code/seamless-templates#173; the generated compose file already selectstarget: dev), Express and Fastify in production mode fromnpm start(fells-code/seamless-templates#171), and the example secrets refused everywhere (fells-code/seamless-templates#176). Every template'srequires.cliMinis 0.24.0 or lower.Checks run locally
npm run check:pins: every commit and image digest matches its tag.npm run build: passes.npm test: 89 files, 2126 tests passed (2 files, 28 tests skipped as before).npm run coverage: thresholds pass.scripts/scaffold-smoke.shagainst the v0.24.3 image (sha256:95fb964f..., ports remapped locally): init, data and signing keys survive a recreate, and the owner registered as the browser would verifies with theowner-codecode and holdsadmin:write. PASS.seamless templates listdownloads the registry at the pinned templates commit.scripts/cli-commands-e2e.shagainst the v0.24.3 image (ports remapped locally): PASS through step-up, org, migrate, users, members and sessions.seamless verifywas not run locally.