Access & governance / Scopes

Scopes

Scopes are the actions that can be taken on a resource, read, create, manage access. They are the vocabulary of every permission in WebFrolic: roles bundle them, OAuth2 applications request them, OAuth2 secret assignments are limited to a subset of them, and API keys select them. Two settings on each scope also decide what MCP clients and other applications can reach.

Available now in WebFrolic.

Why it matters

Broad tokens widen the blast radius.

A token or key that carries every action is a skeleton key. Narrow, readable scopes keep each credential’s reach small and make reviews possible.

One vocabulary

Defined once

Scopes are defined per resource and reused everywhere.

Least privilege

Subsets everywhere

Applications, OAuth2 secret assignments and API keys each get only the scopes they need.

Readable

Reviewable names

Permissions read like invoice:create, not opaque strings.

MCP clients and Cross App Access

Two settings on every scope, one for each role.

WebFrolic can act as the identity provider and as a resource server, so each scope carries a separate setting for each role. They are independent: a scope can have either, both or neither.

SettingWebFrolic’s roleWhat it decides
Assignable to MCP clients by defaultIdentity providerWhether the scope is granted automatically to MCP clients approved from the catalog. Scopes without it reach an MCP client only as an additional assignment.
Available for Cross App AccessResource serverWhether other applications can reach the scope through Cross App Access with an ID-JAG. Scopes without it are never offered.

Before rollout

Questions worth answering.

Settle these first and the rollout is mostly configuration.

  • Define scopes per resource before building roles.
  • Give applications only the scopes they request.
  • Grant OAuth2 secret assignments a subset of scopes.
  • Decide which scopes MCP clients get by default, and which are open to Cross App Access. Read-only scopes are usually safe for both; grant write and administrative scopes one client or application at a time.
  • Choose individual permissions for API keys.
  • Review scopes when resources change.

Related capabilities

Explore what connects to this.

These capabilities are usually configured together.

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.