Repository navigation
Second independent auth provider: Auth.js behind the same principal/identity boundary (#841) - #886
Merged
Merged
Conversation
…he principal and identity boundary (#841) Adds proofs/authjs-provider (@example/urlcode-authjs), an independent extension package that mounts Auth.js (@auth/core 0.41.3) on one route, sets the request principal from Auth.js's own session action and provides the identity capability. It imports only Auth.js and @jimhoyd/urlcode/extensions. proofs/private-requests-authjs runs the private-requests application with it: identical store declaration, page and routes apart from protection written as policies.extensions.authjs. test/authjs-provider.integration.ts (npm run test:proof:authjs, in verify:workspaces and the workspace-integration job) installs the provider from a local tarball with `urlcode extensions add`, checks the conformance cases over HTTP, records the gaps (no server-side revocation with JWT sessions) and shows that an independent package cannot take the name auth that the auth: short form requires. No core edits. Co-Authored-By: Claude Opus 5.5 <[email protected]>
jimhoyd
enabled auto-merge (squash)
September 29, 2026 01:51
…on suites Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Sep 29, 2026
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.
Adds #841 acceptance evidence: "a second independently owned provider at the same relevant capability boundary without editing core or importing default-provider types into it."
Provider package:
proofs/authjs-provider/@example/urlcode-authjs(extension nameauthjs), built on Auth.js@auth/core0.41.3 (ISC, 6 packages).authorize()checks the session through Auth.js's own session action and sets the request principal. The package providesidentityas{userId}.@jimhoyd/urlcode-author Better Auth.Application:
proofs/private-requests-authjs/Integration test:
test/authjs-provider.integration.tsnpm run test:proof:authjs, included inverify:workspacesand the CI workspace-integration job. All 12 subtests pass.list --strictpasses, remove works.explainpass.Gaps (recorded in the README and docs)
policies.throttleon the mount.Core coupling found (filed separately)
Everything tied to the provider is keyed on the extension name
auth, not onprovidesPrincipal:auth: trueshort form (config.ts:456,464) and its policy-error locations (extensions.ts:684).auth, a catalog name (addon-install.ts:524), so it can't use the short form.auth(openapi.ts:167,174,208,236).review.ts:185).Evidence
npm run verifypasses: 1150/1150,test:addons,test:proof,test:proof:authjs12/12.npm run test:packagepasses.🤖 Generated with Claude Code