A resource server is the API or service that hosts protected data or functions and enforces access based on presented tokens or credentials. It matters because issuing tokens is not enough if the receiving service does not validate and enforce them correctly.
What is Resource Server?
In OAuth and related systems, the resource server is the component that receives access tokens and decides whether the caller can access the requested resource. It typically validates token properties, enforces scopes, and applies authorization rules to the actual data or operation.
What Resource Server Commonly Supports
Common examples include protected APIs, SaaS endpoints, internal services, user-data platforms, and machine-to-machine interfaces that rely on token-based access.
Resource Server vs. Authorization Server
The authorization server issues tokens and handles delegation. The resource server consumes those tokens and protects the real resource.
Frequently Asked Questions
Why is the resource server important?
Because improper token validation or weak authorization at the resource layer can expose sensitive data even when token issuance looks sound.
Can a system be both an authorization server and a resource server?
Yes. Some platforms combine multiple identity and resource roles, though the responsibilities remain distinct.