This repository was archived by the owner on Oct 31, 2026. It is now read-only.
Repository navigation
Broker 0.7.0: registerClient, an internal function that registers a client - #17
Merged
Merged
Conversation
registerClient replaces POST /register and the registration tokens. The caller holds the deploy key of the hub, so a second credential guards nothing. For the same reason an app has no list of allowed callback hosts. The first client of an app id creates the app as a first-party app. The reply also carries the issuer, so a consumer needs no issuer of its own. The Alchemy resource moves to @samebase/alchemy-convex, which holds the Convex credential, so @samebase/alchemy-identity-hub goes away. allowedCallbackHosts stays as an optional field until the rows of the existing hub have lost it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fifteen preview stages still run the old resource, and their destroy calls the old route. So this release only adds registerClient. The routes, the tokens, and the host list go in a later release, once no old code runs. The host list becomes optional, so that an app that registerClient creates has none. Such an app refuses /register. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
registerClientis a new internal admin function. It registers one deployment as a client, and it answers with the issuer and the client.allowedCallbackHostsbecomes optional:registerClientdoes not read it.@samebase/alchemy-identity-hubgoes away. The resource moves to@samebase/alchemy-convex, which holds the Convex credential.Why
The hub now lives in the team's project. Everyone who may register a client already holds the Convex credential of the team, so a second credential guards nothing.
Rollout
This release only adds.
/register,DELETE /register/<id>, and the registration tokens stay, because 15 preview stages still run the old resource, and their destroy calls the old route. A later release removes them when no old code runs.🤖 Generated with Claude Code