Gateweave ID: one sign-in for your team's apps, on one Cloudflare Worker
Yiğit Tanrıverdi ·
Gateweave ID is an open-source identity provider. People keep one account, and any app that speaks OpenID Connect can sign them in with it. It is for a small team that wants one login for the tools it runs, without running an identity server of its own: ID is one Worker, one D1 database, a Durable Object for rate limits and a Queue, all on your own Cloudflare account.
It is the third Gateweave product after Track and Agents, and the reason it exists is those two. Each of them kept its own accounts, so someone who used both had two passwords, two sets of sessions and no way to sign out of both at once. On Gateweave Cloud, Track and Agents now have a “Continue with Gateweave” button, and it signs you in with ID.
The first commit is from November 4 and it has had 29 releases since, so this is early. Here is what it does today, how far its testing has got, and what it doesn’t do.
Why one sign-in
Track and Agents still keep their own users, sessions and workspaces. ID doesn’t replace that. It is a second way in: you click “Continue with Gateweave”, ID proves who you are, and the product signs you in. If it already has an account with the same verified address, the two are linked. If you sign out of ID, ID tells each product, and each ends its session, with a retry from a queue for about 20 hours if a product was down at that moment. Neither product keeps a token from ID.
So the first problem it solves is mine: one account for people who use more than one Gateweave product. The second is yours, if you run other tools.
What it does today
- Accounts. You sign up with a code sent to your email, and then choose a password. You can sign in with that password, with GitHub or with a passkey, and turn on two-factor sign-in with an authenticator app for password sign-ins. There is a password reset by email and an account page with your recent activity, where you can end a session on another device or take back an app you allowed.
- Workspaces. People make workspaces and invite each other. Groups inside a workspace decide who may sign in to which app.
- Your own apps. An owner or admin of a workspace adds an app and gets an issuer, a client ID and a client secret. Only members of that workspace can use it. The first time, each person is asked whether the app may have what it wants, and the page says which workspace’s admin added it and that nobody has checked who runs it. Someone who leaves the workspace loses its apps at once, and their tokens for them stop working.
- Cloudflare Access. ID can be the identity provider for Cloudflare Access, which puts an internal app behind a sign-in through a Cloudflare Tunnel, with no server of your own and no change to the app.
- Your own server. The first account owns it, and sign-up closes behind it until you open it. It also runs without email, with less.
Four apps have been signed in to for real, and each has a guide that says how far that went: Grafana 13.3.0, Outline 1.12.0, Gitea 28.3.0 and Cloudflare Access. In Grafana, a group in ID sets the role someone gets. Outline needs the secret sent in the body of the request, and Gitea sends neither PKCE nor a nonce, so its app has to have Require PKCE turned off, which has a cost its guide explains.
What your app gets
Your app sees ordinary OpenID Connect: discovery at /.well-known/openid-configuration, the
authorization code flow with PKCE, an ID token and userinfo. A few choices are worth knowing about:
- A different
subon every host. Subjects are pairwise, so two apps on two hosts can’t match a person up by it. One consequence is that an app keeps its host for good: to move, you add a new app, and your people look new to it. - Groups as a claim. With the
groupsscope, an app gets the names of someone’s groups in the workspace that added it, and never another workspace’s. - A verified address. ID never gives an address it hasn’t verified.
- RS256. ID tokens are signed with RS256, because OpenID Connect requires it of a provider and libraries expect it unless they are told otherwise. The keys rotate every 90 days, and an old key stays in the published key set for 30 more days.
How far the testing has got
ID is not certified. Certification is a separate step with the OpenID Foundation, which may carry a fee, and I haven’t decided on it. What I can say is what the Foundation’s conformance suite says:
| Plan | Result |
|---|---|
| Config OP | Passed |
| Basic OP | 23 passed, 4 warnings, 4 skipped, 4 left for a person to look at, none failed |
That is for apps that a deployment registers itself, such as Track and Agents. For apps a workspace
adds, it is the same except for one test that fails on purpose: when someone is signed out and an app
asks for prompt=none, the suite expects ID to redirect to the app with login_required. ID shows a
sign-in page instead, because anyone can add an app, and a quiet redirect to it would make ID an
open redirector.
The suite runs against a local build on the pull requests that touch the code and once a week, and I
ran it by hand against staging with the same result. The warnings and skips are listed one by one in
the docs: for example, ID holds a name and a picture but no address or phone number, and it ignores
the claims parameter. Those plans also don’t use PKCE, which ID asks for unless an app says it can’t,
so a run says nothing about an app that keeps the defaults. Other tests cover that.
Nobody outside the project has audited ID. For something that decides who gets into what, read that twice.
What it doesn’t do yet
- It isn’t certified, as above.
- Apps a workspace adds don’t hear about a sign-out. Back-channel logout works for Track and Agents but isn’t available to your apps yet. If your app keeps people signed in for longer than an access token lasts, it should refresh and end its own session when that fails.
- There is no token introspection endpoint, no dynamic client registration and no request
objects. Access tokens are opaque and
resourceis refused. - An app can’t tell how someone signed in.
acris always"0"and nothing can addamr, so an app can’t require a second factor through its tokens. - Passkeys have been tested with Chromium’s virtual authenticator, and the docs still list a real one, from Windows Hello or a phone, as unproven.
- Cloudflare Access can keep a session ID can’t end. Signing out of ID, or removing someone from a workspace, doesn’t end their live Access session. The guide says to revoke them in Cloudflare too. And I ran the Access steps through Cloudflare’s API against staging, not by clicking through the dashboard.
- It speaks OpenID Connect and nothing else.
Running your own
The Deploy button copies the repository to your GitHub account, creates the database and the queue and
deploys it. Use the Workers Paid plan: a password check takes about 100 ms of CPU, and the Free plan
gives a request 10 ms. The first account owns a new server, so open it as soon as it is up and claim
it. The self-hosting guide has every setting,
including how to turn the provider on, how to keep your data in one jurisdiction, and what you give up
without email. The provider needs a BETTER_AUTH_URL and an OIDC_PAIRWISE_SECRET, and the issuer
can’t change once an app has signed anyone in, so choose your address first.
ID is licensed AGPL-3.0, like the other two, and the source is at github.com/gateweavehq/id.
Try it
- Host it yourself on your own Cloudflare account. The first account owns the server.
- See it on Gateweave Cloud, where it signs people in to Track and Agents.
- Read the guide to connect an app if you have one in mind. Tell me which app it was and how far it got.
- Star it on GitHub if you’d like to see where it goes.
An identity provider is a lot to trust, and mine is nine days old. What would you need to see before you let it sign your team in to anything? Issues are open, and so is the repository.
Claude Code wrote this post and checked what it says against ID’s code, its docs and its public pages. Where it says “I ran” or “I haven’t decided”, an agent usually did the running on my say-so.