Security & Reliability

Client Token (Scoped Bearer Auth)

Direct Definition

A Client Token is a scoped, revocable authentication credential designed for frontend web and mobile applications. It grants permission to invoke specific edge API pipelines while enforcing allowed-origin domains and rate limits, safely abstracting sensitive upstream API secrets.

Technical Architecture & Deep-Dive

When frontends need to access APIs, giving them direct access to master API keys is dangerous. Client Tokens decouple public client access from private backend credentials. A client token (`rc_live_...`) is safe to embed in frontend headers because it is restricted to specific pipelines and configured origins (e.g. `https://mycompany.com`).

If a client token is ever compromised, administrators can revoke or rotate it in one click without invalidating master upstream keys or redeploying backend infrastructure.

Key Architectural Benefits

Enforces strict browser origin matching to prevent unauthorized cross-origin use.
Isolates frontend access from master cloud credentials.
Supports instant revocation without breaking upstream integration keys.
REALCOMPOSER EDGE WORKSPACE

Implement Client Token (Scoped Bearer Auth) at the Edge

Deploy lightweight API aggregation, edge caching, and secret injection in minutes without Docker containers or complex servers.

START BUILDING FREE

Frequently Asked Questions

Q:Can client tokens be used from native mobile apps?

Yes. Client tokens work seamlessly in mobile HTTP headers (`Authorization: Bearer <token>`) combined with rate-limiting rules.

Related Architecture Concepts

Ready-to-Use Edge Recipes