[Prototype] Extract client credentials auth into dev-platform-auth - #8327
Draft
dmerand wants to merge 9 commits into
Draft
[Prototype] Extract client credentials auth into dev-platform-auth#8327dmerand wants to merge 9 commits into
dmerand wants to merge 9 commits into
Conversation
Assisted-By: devx/b95434f1-5993-47b3-b56c-380241eff68f
Assisted-By: devx/17376415-2e96-4ea0-9057-0d8f9bfa20da
Assisted-By: devx/17376415-2e96-4ea0-9057-0d8f9bfa20da
Two layers. Layer 1 pins transport request shape plus cited response structure and status; fixture values are arbitrary fakes. Layer 2 holds outcome mapping as explicitly provisional, because the package error taxonomy and cancellation model are undecided. 12 cases, 28 harness self-tests. Assisted-By: devx/bac322b8-a005-4d5c-96f3-fbfeaf201e7f
Assisted-By: devx/7a9ee065-6614-4654-8965-98d6e969645b
Assisted-By: devx/2371aeae-c1b9-4d35-9684-3974f733db3f
Assisted-By: devx/9eea9b31-7143-4bfb-b4f5-e31a4675e7ee
Assisted-By: devx/e028700d-9b41-468f-aa4c-d283f0afaa61
Assisted-By: devx/e60b6dbb-cc8e-4183-a7cd-c957ae861a16
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.
WHY are these changes introduced?
This is an exploratory prototype for extracting the client-credentials flow from
cli-kit.The prototype tests whether a portable package can preserve the CLI request, return shape, error behavior, and security boundary. It is not ready to merge.
WHAT is this pull request doing?
@shopify/dev-platform-authwith a client-credentials operation.cli-kitimports.cli-kitas an adapter with the existing{token, storeFqdn}return shape.serverCode.The branch also carries the earlier contract fixture and portability prototype work.
How to test your changes?
pnpm --filter @shopify/dev-platform-auth vitest --run pnpm --filter @shopify/dev-platform-auth build pnpm --filter @shopify/cli-kit exec vitest run src/public/node/session.test.tsThe existing
session.test.tsmust remain unmodified.Post-release steps
None. This is an exploratory draft. Do not merge or publish.
Checklist