Opaque Access Token
An opaque access token is a random, non-self-describing bearer string whose meaning only the authorization server knows. Resource servers validate it via token introspection or a shared session store instead of local JWT signature verification.
Technical Architecture & Deep-Dive
Opaque tokens improve revocation: disable the record and every introspection fails immediately. JWTs trade offline verification for stale trust until expiration unless you maintain deny lists.
Edge proxies can introspect once per request or cache brief positive responses with tight TTL. Never send introspection client secrets to browsers. Map introspection results to internal authorization scopes before calling upstream APIs.
Key Architectural Benefits
Implement Opaque Access Token at the Edge
Deploy lightweight API aggregation, edge caching, and secret injection in minutes without Docker containers or complex servers.
Frequently Asked Questions
Q:When should I prefer JWT access tokens?
When many microservices need offline verification with public keys and short lifetimes make revocation delays acceptable.
Related Architecture Concepts
Token introspection is an OAuth 2.0 mechanism where a resource server asks the authorization server whether an opaque access token is active, which scopes it carries, and which subject it represents. The introspection endpoint returns a structured active or inactive verdict.
An access token is a credential that authorizes calls to a protected API on behalf of a user or application. OAuth providers issue access tokens with a limited lifetime and scopes. APIs validate the token signature or call an introspection endpoint before executing the request.
A JSON Web Token (JWT) is a compact, URL-safe token containing a JSON payload of claims, such as user ID and expiration, signed by the issuer. Servers verify the signature to trust the claims without a database lookup, enabling stateless authentication.
OAuth 2.0 is an authorization framework that lets an application obtain limited access to a user account on another service without handling the user password. The user approves requested scopes, and the application receives an access token it uses to call the service API.
Ready-to-Use Edge Recipes
Never place CLERK_SECRET_KEY inside Frontend / Web source. RealComposer injects them when calling https://api.clerk.com/v1/users/{{query.userId}}, so browsers see only a client token.
Firebase ID token lookup and Supabase profile row merged at edge. For "combine firebase auth user with supabase profile endpoint", store FIREBASE_ACCESS_TOKEN, SUPABASE_SERVICE_ROLE_KEY in Secret Vault, call https://firestore.googleapis.com/v1/projects/{{query.projectId}}/databases/(default)/documents/{{query.collection}}/{{query.docId}} from a Worker, and let React / Flutter / Mobile hit only https://realcomposer.com/v1/workspace/combine-firebase-auth-with-supabase-profile with an rc_live_ client token.
Never place API_BEARER_TOKEN inside Frontend / Web source. RealComposer injects them when calling https://{{secrets.API_HOST}}/status, so browsers see only a client token.