Subscribe to the Non-Human & AI Identity Journal

Resource Server

The component that hosts protected resources and validates whether a request is allowed to access them. In MCP deployments, the resource server should not issue tokens itself. It should verify presented credentials, enforce scopes, and rely on a separate authorization server for identity decisions.

Expanded Definition

A resource server is the component that hosts protected data or actions and decides whether an incoming request may proceed. In OAuth and related delegated-access models, it validates presented access tokens, checks scopes or permissions, and enforces the policy that governs the resource itself. It should not mint tokens or make its own identity assertions; those responsibilities belong to the authorization server or another trusted identity authority.

In NHI and MCP deployments, this distinction matters because tool access and data access are often automated at machine speed. A resource server may protect an API, a message queue, a storage bucket, or a tool endpoint used by an AI agent. Standards-based implementations usually align with OAuth 2.0 resource server behavior, while local policy determines what an accepted token is allowed to do. Guidance varies across vendors on how much authorization logic belongs at the edge versus inside the application, so teams should treat the boundary as explicit and document it. For a broader governance lens on machine identity exposure, see NHI Mgmt Group’s Ultimate Guide to NHIs and the NIST Cybersecurity Framework 2.0. The most common misapplication is letting the resource server issue tokens or infer identity from transport context alone, which occurs when implementation teams blur authorization with authentication.

Examples and Use Cases

Implementing a resource server rigorously often introduces latency and policy complexity, requiring organisations to weigh stronger access control against simpler request handling.

  • An MCP tool endpoint accepts an access token from a separate authorization server, then checks whether the agent may invoke a specific function with the requested scope.
  • A payment API validates token audience and scope before returning account data, while the authorization server handles issuance, revocation, and user or workload binding.
  • A storage service permits read access to a service account only when the presented token matches the expected issuer, audience, and policy conditions.
  • An internal platform protects a sensitive admin endpoint by requiring short-lived delegated credentials rather than shared secrets embedded in code. The credential exposure patterns described in the ASP.NET machine keys RCE attack show why the resource boundary matters.
  • An agentic workflow calls a resource server through a brokered tool interface, and the server denies the request when the token lacks the correct scope or the audience does not match the target API. This aligns with OAuth resource server concepts referenced by NIST Cybersecurity Framework 2.0.

NHIMG research shows that 80% of identity breaches involved compromised non-human identities such as service accounts and API keys, which makes the resource server a frontline control for limiting blast radius.

Why It Matters in NHI Security

Resource servers are where delegated authority becomes real. If they accept weak tokens, skip audience checks, or trust claims they did not verify, an attacker can reuse stolen credentials across services and move laterally through machine identities. If they over-trust internal traffic, they create a false sense of safety that breaks down as soon as a token is replayed from a different workload, tenant, or environment. This is especially important in NHI ecosystems where service accounts, API keys, and agent credentials are already overexposed. NHI Mgmt Group reports that only 5.7% of organisations have full visibility into their service accounts, which means resource-server decisions are often the last enforceable checkpoint before sensitive data is released.

Practitioners should treat the resource server as an enforcement point, not a source of truth for identity creation. It should validate tokens, honor revocation and scope boundaries, and reject requests that do not match the intended audience or policy context. That discipline supports least privilege, Zero Trust, and safer MCP tool execution. Organisations typically encounter the need to harden the resource server only after a token replay, API abuse, or agent misuse event makes the failure visible, at which point the control becomes operationally unavoidable to address.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST CSF 2.0 and NIST Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
OWASP Non-Human Identity Top 10 NHI-02 Resource servers enforce token and scope checks to reduce secret and credential abuse.
NIST CSF 2.0 PR.AC-3 Covers identity proofing and access enforcement for protected resources and services.
NIST Zero Trust (SP 800-207) Zero Trust requires continuous verification at the resource server before access is granted.

Validate presented credentials, constrain scopes, and reject overbroad NHI access at the resource boundary.