Skip to content
This repository was archived by the owner on Oct 31, 2026. It is now read-only.

Broker 0.7.0: registerClient, an internal function that registers a client - #17

Merged
nicu-chiciuc merged 2 commits into
mainfrom
hub-registration-through-convex
Oct 30, 2026
Merged

nicu-chiciuc merged 2 commits into
mainfrom
hub-registration-through-convex

Conversation

@nicu-chiciuc

@nicu-chiciuc nicu-chiciuc commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

What

  • registerClient is a new internal admin function. It registers one deployment as a client, and it answers with the issuer and the client.
  • The first client of an app id creates the app as a first-party app. So a new app needs no hand step.
  • allowedCallbackHosts becomes optional: registerClient does not read it.
  • @samebase/alchemy-identity-hub goes 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

nicu-chiciuc and others added 2 commits October 30, 2026 11:54
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>
@nicu-chiciuc nicu-chiciuc changed the title Broker 0.7.0: register a client through an internal function Broker 0.7.0: registerClient, an internal function that registers a client Oct 30, 2026
@nicu-chiciuc
nicu-chiciuc merged commit 2081746 into main Oct 30, 2026
5 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant