Platform / Authorization

Custom Authorization Server

The authorization and permission model that protects WebFrolic is available for your own APIs. Host the authorization server yourself from WebFrolic’s open-source binaries and connect it to the identity provider, or use the WebFrolic-hosted authorization server. Either way, your custom resources get roles, scopes and granular API-key access out of the box.

Available now in WebFrolic.

Why it matters

Most teams rebuild authorization for every API, and API keys end up all-or-nothing.

When each service writes its own checks, the same role means different things in different places. And when an API key can call everything a user can, teams either refuse to issue keys or hand agents far more access than they need. A shared model with per-operation API-key support gives you both: automation where it is safe, people where it matters.

Self-hosted

Run it in your own network

Deploy the authorization server from WebFrolic’s open-source binaries next to your APIs and connect it to the identity provider.

WebFrolic-hosted

Batteries included

Use the hosted authorization server and get access and authorization for your custom resources with nothing extra to run.

Per-operation API keys

Choose what agents may do

Every permission carries an explicit API-key support setting, so each operation on each resource type is either open to API keys or requires a signed-in user.

Two ways to run it

The same model, wherever it runs.

OptionHow it runsChoose it when
Self-hostedYou run WebFrolic’s open-source authorization server binaries in your infrastructure and connect them to the WebFrolic identity provider.Authorization decisions must stay inside your network, close to your APIs, or under your operational control.
WebFrolic-hostedWebFrolic runs the authorization server for you and connects it to your identity provider.You want access and authorization for your custom resources without running another service.

Best of both worlds

Decide per operation: agent, or person.

API-key support is set on each permission, not on the whole resource. An example invoice API:

OperationAPI-key supportResult
invoice:readOnAn agent with a key that includes this permission can read invoices.
invoice:createOnIntegrations can create draft invoices.
invoice:approveOffApproval requires a signed-in user, with their roles, assurance level and network rules.
invoice:manageaccessOffChanging who can see invoices is never delegated to a key.

In the console

Set it up in four steps.

Menu names match the WebFrolic console. The setup guide has the detail.

01

Model your resources

In Authorization → Resources, create a custom resource for each type of object your API protects, with its scopes.

02

Set API-key support

In the resource’s Permissions, add a permission per operation and set API Key Support? on only the operations you want callable with a key.

03

Connect the server

In Authorization → Resource Server, register the self-hosted or WebFrolic-hosted server: server type, endpoints, audit setting and its access token.

04

Grant access

Bundle permissions into roles for people, and create API keys that select only the permissions an integration or agent needs.

Before rollout

Questions worth answering.

Settle these first and the rollout is mostly configuration.

  • List the operations your API exposes and the resource type each acts on.
  • Decide, per operation, whether an agent or integration may call it with an API key.
  • Choose self-hosted or WebFrolic-hosted, based on where decisions must run.
  • Restrict API keys with expiry and network rules.
  • Confirm denied API-key calls and audit records in a test environment.

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.