Join our Newsletter — 33% off our NHI Course
Home› FAQ› Authentication, Authorisation & Trust› How do OAuth refresh tokens work when an…
Authentication, Authorisation & Trust

How do OAuth refresh tokens work when an MCP client and a third-party app each own different tokens?

← Back to all FAQ
By NHI Mgmt Group Editorial Team Updated December 3, 2026 Domain: Authentication, Authorisation & Trust

OAuth refresh tokens are long-lived credentials used to obtain new access tokens without re-prompting the user. If an MCP client and a third-party app each hold different refresh tokens, each token usually belongs to a separate OAuth authorisation grant and must be refreshed only by the component that received it. Sharing or copying refresh tokens between components breaks token ownership and can trigger revocation or invalid_grant errors.

How refresh token ownership works across separate OAuth grants

OAuth refresh tokens are not interchangeable just because two components sit in the same overall workflow. Each refresh token is tied to the authorisation grant that created it, which means the MCP client and the third-party app each need to keep using the token they received. The practical rule is simple: the holder of the grant owns the refresh path.

That ownership matters because refresh is a continuation of the original trust relationship, not a generic “renew access” operation. When a component presents its refresh token, the authorization server expects the same client context, policy state, and grant lineage that existed when the token was issued. If a different component tries to use it, the result is often a failure rather than a shared session.

For a deeper explanation of the OAuth mechanics behind grants, clients, scopes, and token lifecycle, see OAuth 2.0 and OpenID Connect Guide for Identity Teams. The same separation principle shows up in MCP deployments too, where client-side token handling and server-side authorization must stay aligned, as described in MCP Security Guide.

Why copying refresh tokens between components breaks the model

Refresh tokens are usually designed to be opaque, long-lived credentials with narrower operational visibility than access tokens. They can survive beyond one access token cycle, but they are still bound to the conditions under which they were issued. That is why copying a refresh token from the MCP client to a third-party app, or the other way around, can break the protocol even if both are part of the same user journey.

The most common failure mode is a mismatched client or grant context. The authorization server may reject the refresh request with invalid_grant because the token is being presented by the wrong party, the grant has been rotated, or the server has detected a change in state that invalidates reuse. In some deployments, token reuse can also trigger revocation responses or broader session invalidation.

This is especially important in shared integration ecosystems where multiple tools, connectors, or agents touch the same user data. The safer pattern is to let each application refresh only its own token set, then treat cross-component access as a separate integration decision rather than a token-sharing shortcut. The OAuth 2.0 Authorization Framework defines the underlying grant model, while MCP authorization for HTTP transports reinforces the need for audience-bound tokens and no token passthrough.

What to check when two systems each hold their own tokens

When two components each have different refresh tokens, the key question is not “which token is newer?” but “which component owns which authorization grant?” That means verifying the client registration, redirect or broker path, token storage location, and any rotation or revocation rules attached to each integration. If those differ, the tokens should be treated as separate credentials with separate blast radii.

It is also worth checking whether either system is silently forwarding tokens, storing them in shared secrets managers, or reusing one user grant across multiple apps. Those patterns are fragile because they blur ownership and make revocation unpredictable. In OAuth-based toolchains, token substitution often fails only after an incident or a policy change, so the right time to test the boundary is before production dependency accumulates.

For practical hardening guidance on keeping token custody separated and limiting integration blast radius, see Gong, Drift and Sales Engagement OAuth Integration Security Guide and Security Requirements for Selecting an Integration Platform (iPaaS). If you need a standards reference for token audience and refresh behaviour, RFC 9700: Best Current Practice for OAuth 2.0 Security and RFC 8707: Resource Indicators for OAuth 2.0 are the most useful complements.

Risk and Threat Considerations

Shared or misrouted refresh tokens create a high-value persistence path because whoever controls the token can often obtain fresh access without reauthentication. If token ownership is confused across an MCP client and a third-party app, a compromise in one component can become access to the other, especially when teams assume the refresh token is “just infrastructure glue” rather than a live credential.

Failure mechanism: A refresh token is copied, forwarded, stored in the wrong trust boundary, or reused by a component that did not receive the grant, causing invalid_grant failures, revocation, or unintended persistent access if the server does not enforce the expected client context.

Impact: The likely outcomes are broken integrations, forced reauthorisation, expanded blast radius after compromise, and harder incident response because token provenance no longer matches the component that is actually presenting it.

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 addresses the attack and risk surface, while NIST SP 800-53 Rev 5 and OWASP ASVS set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
NIST SP 800-53 Rev 5IA-5 — Authenticator ManagementRefresh tokens are authenticators that need lifecycle control and revocation.
IA-2 — Identification and Authentication (Organizational Users)OAuth refresh flows depend on the authenticated client context and grant ownership.
AC-6 — Least PrivilegeSeparate grants should not be broadened into shared cross-component access.
Recommendation — Manage refresh token issuance, rotation, storage, and revocation as authenticators. Bind refresh token use to the authenticated client and original grant context. Limit each component to the minimum authorization needed for its own token.
OWASP ASVSV6 — AuthenticationOAuth refresh token handling is an authentication mechanism with replay and reuse risks.
V9 — Self-contained TokensToken handling and misuse controls matter when credentials are passed between components.
Recommendation — Verify refresh token handling preserves client binding and rejects cross-client reuse. Reject token forwarding patterns that let one component present another component's credential.
OWASP Non-Human Identity Top 10NHI-02 — Secret LeakageCopied refresh tokens become exposed credentials outside their intended owner.
NHI-07 — Long-Lived SecretsRefresh tokens are long-lived credentials that require careful custody and rotation.
Recommendation — Keep refresh tokens out of shared storage and prevent credential copying between components. Rotate and revoke refresh tokens on a defined lifecycle instead of reusing them broadly.

Practitioner Guidance

What to verify: Confirm that each application, broker, or MCP client has its own token store, its own client registration, and its own refresh flow. If a token can be refreshed from more than one place, treat that as a design flaw rather than a convenience.

Decision rule: If a component did not receive the refresh token during the original authorization flow, do not let it refresh that token. If cross-component access is required, redesign the integration so each party authenticates and refreshes independently, rather than sharing a bearer credential.

What good looks like: Each token has one owner, one refresh path, and one revocation path. When one integration is disabled or rotated, the other continues to function without inheriting its credentials or failure state.

Practitioner takeaway: Separate tokens are not a problem to “share around”; they are evidence of separate grants, and the safest operational model is to preserve that separation all the way through refresh, rotation, and revocation.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on December 3, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org