OAuth2 Clients
View OAuth2 clients registered with the built-in authorization server, see which users granted them access, and revoke that access.
When ByteChef runs its own OAuth2 authorization server, MCP clients and other OAuth2-capable integrations register themselves with it automatically through Dynamic Client Registration (DCR). Settings → OAuth2 Clients is the admin surface for that client store: it lists every registered client, shows which users have granted it access, and lets an administrator revoke that access for a single user or for the whole client.
Availability
This page is Enterprise Edition and requires the ADMIN authority, which the server also enforces for API calls. The list only has content when the built-in authorization server is enabled with bytechef.oauth2.authorization-server.enabled=true (BYTECHEF_OAUTH2_AUTHORIZATION_SERVER_ENABLED), which is on by default.
How clients get here
You do not create clients on this page. Entries appear as a side effect of an OAuth2 client connecting to one of ByteChef's MCP server endpoints. This covers both the management MCP server and the automation MCP servers:
- An OAuth2-capable MCP client (for example a claude.ai web integration, which cannot send custom headers) makes its first unauthenticated request to an MCP endpoint.
- The authorization server advertises its authorization metadata, and the client registers itself via Dynamic Client Registration.
- The user completes an authorization-code + PKCE flow using their existing ByteChef login (a user who is not signed in is sent to the login page and returned to the flow afterwards), followed by a consent screen. The consent screen shows the name the client registered with (self-declared and unverified) and the hosts its redirect URIs point to, which is where approving sends the user back.
- The registered client is persisted and appears in this list.
Because registration is dynamic, the list shows only clients that have connected. There is no manual "add client" step.
A connected client holds an access token that lasts one hour and a refresh token that lasts 30 days and is replaced on every renewal. Revoking a grant or a client below ends both: the client's next request is rejected and it cannot renew. See MCP Server → Authentication for the connecting side of this flow.
The clients table
Each registered client is one row:
| Column | Description |
|---|---|
| Name | The client's display name (clientName) as supplied at registration. May be blank. |
| Client ID | The OAuth2 client identifier issued to the client. |
| Issued | Local date and time the client ID was issued (clientIdIssuedAt). |
| Scopes | The scopes granted to the client, joined with commas. |
| Grants | How many users currently have access through this client, shown as a badge such as 2 user(s). |
Rows are ordered newest first by issue date. Each row ends with a Delete client trash icon (single-tenant) or a Revoke all grants icon (multi-tenant). See Revoke a client.
When no clients have registered yet, the table is replaced by an empty state titled No OAuth2 Clients with the message "AI assistants such as Claude or Cursor register here on their own when a user connects them to an MCP server. You can see who has access and revoke it." and a How OAuth2 clients work link.
Grants
A grant is the access one user has given to one client. When a user approves a client on the consent screen, ByteChef records that approval as a grant, and the client then uses it to act on that user's behalf on the MCP servers it connected to.
Click the arrow at the start of a row to expand a client and see its grants:
| Column | Description |
|---|---|
| User | The ByteChef user who approved the client. |
| MCP servers | The MCP servers the grant reaches - Management for the management MCP server, or the name of the automation MCP server. |
| Scopes | The scopes the user approved. |
| Authorized | When the user first approved the client. |
| Last used | When the client last received a new token. |
| Expires | When the grant stops working unless the client renews it. |
A grant is listed only while it still has a valid token.
Revoke a user's grant
- Expand the client and click the revoke button at the end of the user's row.
- Click Continue in the confirmation dialog.
Revoking takes effect immediately: the user's next request through that client is rejected with 401. The revocation covers every MCP server the client reached for that user. To get access back, the user must connect again and approve the consent screen once more. Other users of the same client are not affected. If the grant is already gone (for example, another administrator revoked it first), the page reports an error.
Revoke a client
Removing a client revokes everything it holds. What the button does depends on how ByteChef is deployed.
Single-tenant installations. Click the Delete client trash icon at the end of the row and confirm in the Are you absolutely sure? dialog: "This action cannot be undone. This will permanently delete the OAuth2 client and revoke its authorizations." ByteChef removes the client, all of its grants and the users' stored approvals. Any MCP assistant connected through that client must register again and the user must approve access again.
Multi-tenant installations. A client can be shared by several tenants, so you cannot delete it. The page lists only clients that have grants in your tenant, and each row shows Revoke all grants instead of the trash icon. It revokes every grant for that client in your tenant and leaves other tenants' grants untouched. Click Revoke in the confirmation dialog. The users must approve access again to reconnect.
Turn the authorization server on
The built-in authorization server is on by default. The shipped configuration also trusts its own tokens through this issuer entry:
BYTECHEF_OAUTH2_RESOURCE_SERVER_ISSUERS_0_SELF=true
BYTECHEF_OAUTH2_RESOURCE_SERVER_ISSUERS_0_URI=${BYTECHEF_PUBLIC_URL}
BYTECHEF_OAUTH2_RESOURCE_SERVER_ISSUERS_0_TENANT_CLAIM=tenant_idIt only needs BYTECHEF_PUBLIC_URL (bytechef.public-url), set without a trailing slash to the address clients use. The authorization server uses that URL as its issuer, so a different value means ByteChef rejects its own tokens. A blank public URL leaves the issuer URI blank, and ByteChef refuses to start. To turn the authorization server off, set BYTECHEF_OAUTH2_AUTHORIZATION_SERVER_ENABLED=false.
Setting any BYTECHEF_OAUTH2_RESOURCE_SERVER_ISSUERS_* variable replaces the whole default issuer list. When you add an external issuer, repeat the three self issuer lines above at a free index (for example _1_), or ByteChef rejects its own tokens. Discovery advertises the first issuer, so put the self issuer at index 0 only when it should be the advertised sign-in.
To check that the server is on after a restart, request its metadata. It needs no credentials:
curl "https://your-bytechef-host.example.com/.well-known/oauth-authorization-server"A 200 response with a JSON body means the authorization server is running. Its issuer field must be exactly the URI you set for the self issuer.
See Environment Variables for details.
What this page does not show
- No client secret. Secrets are never returned to the admin UI. There is no reveal, copy, or rotate action. To rotate a client's credentials, delete it and let it re-register (single-tenant installations).
- No edit. Registered clients are read-only apart from deletion. You cannot rename a client or change its scopes, redirect URIs, or grant types here. Those values are fixed at registration time.
How is this guide?
Last updated on