Agentic AI / Connections

Connections

A connection links WebFrolic to a third-party OAuth2 application. WebFrolic redirects the user to that application to grant consent, then stores and refreshes the access and refresh tokens on the server, per application and per user. Any user you assign the connection to can request an access token for a customer who has already consented. That makes Connections the foundation for building MCP clients on WebFrolic.

Available now in WebFrolic.

Why it matters

Agents that act for users need the user’s token, and that is where most designs leak.

An agent booking a meeting or filing a ticket in a third-party system must use the customer’s own access, not a shared admin key. Storing each customer’s refresh token in the agent spreads long-lived credentials everywhere. Connections keep them in the identity provider and hand out short-lived access tokens instead.

Consent once

The user decides

Users are prompted to grant consent to the third-party application; access is tied to that consent.

Always fresh

Tokens refreshed for you

WebFrolic refreshes stored tokens at regular intervals, so assigned users get a working access token when they ask.

Nothing long-lived exposed

Refresh tokens stay put

Refresh tokens and client ID and secret never leave the identity provider; callers only see access tokens.

How it works

Act on a user’s behalf, safely.

StepWhat happensControl
ConfigureAn administrator creates a connection for the third-party OAuth2 application in Administrator → Connections.Credentials, access, firewall, usage and audit views per connection. Applications that accept CIMD can use https://<tenant-domain>/.well-known/client-metadata.json as WebFrolic’s client ID; other applications use a registered client ID as before.
ConsentA customer is prompted to grant consent; WebFrolic stores the resulting tokens.The customer’s consent defines the access.
AssignThe connection is assigned to users of any type, including service and machine users that run agents.Only assigned users can request tokens.
RequestAn assigned user requests an access token for a customer whose token is already stored.Network firewall rules; the refresh token is never returned.
Refresh and auditWebFrolic refreshes tokens on a schedule and records each request.Usage and audit history per connection.

Build MCP clients

Use WebFrolic as the identity and token layer of your MCP client.

An MCP client needs to reach a user’s resources in other applications. With Connections, WebFrolic signs the user in, sends them to each application for consent, and keeps the resulting tokens on the server. Your MCP client asks WebFrolic for a current access token for that user and calls the application or MCP server with it.

Redirect for consent

WebFrolic sends the user to the app

As the identity provider, WebFrolic redirects the user to the OAuth2 application to grant access, and captures the tokens it returns.

Server-side tokens

Per application, per user

Access and refresh tokens are stored on the server for each application and user. The MCP client only ever receives a short-lived access token.

CIMD client ID

One metadata URL per tenant domain

Each tenant domain publishes a Client ID Metadata Document at https://<tenant-domain>/.well-known/client-metadata.json. OAuth2 applications and MCP servers that accept CIMD use it as WebFrolic’s client ID, with no manual registration. Other applications keep using a registered client ID.

Before rollout

Questions worth answering.

Settle these first and the rollout is mostly configuration.

  • List the third-party applications agents must call on a user’s behalf.
  • Decide which users and agents may request tokens for each connection.
  • Set network firewall rules for each connection.
  • Plan how customers revoke consent, and what agents do when they have.
  • Check which target applications and MCP servers accept CIMD, and which still need a registered client ID and secret.
  • Review usage and audit history for each connection.

Evaluate with your scenario

Start with a concrete workflow.

Share the identities, resource boundary and decision you want to test. The walkthrough can focus on the relevant behavior rather than a generic feature tour.