Join our Newsletter — 33% off our NHI Course
Home› Glossary› Authentication, Authorisation & Trust› offline_access scope
Authentication, Authorisation & Trust

offline_access scope

← Back to Glossary
By NHI Mgmt Group Updated December 3, 2026 Domain: Authentication, Authorisation & Trust

A scope that lets an OAuth client request permission to obtain refresh tokens for long-lived access. It is included in the authorisation request when the client needs to renew access tokens without repeated user interaction, and it affects whether the authorisation server returns a refresh token at all.

How offline_access Works in OAuth

offline_access is not an API permission for data, it is a signal in the authorisation request that the client wants long-lived access via refresh tokens. That makes it part of the token-lifecycle design, because the authorisation server may decide whether to issue a refresh token at all, and the client must then handle renewal without repeated user interaction.

For readers designing integrations, the important point is that offline_access changes the session model rather than the resource model: access can continue after the initial browser-based grant has ended, which is why it is commonly paired with careful consent wording, token storage controls, and refresh-token policy.

Why offline_access Matters for Session Duration

The scope matters because it extends the practical lifetime of an OAuth grant. A short-lived access token can reduce exposure, but a refresh token can silently preserve access for much longer, so offline_access sits at the boundary between user convenience and persistent authorisation. That is why scope design and token lifetime should be treated together, not as separate implementation details.

In well-designed deployments, offline_access is only granted when the application truly needs background renewal, such as scheduled sync, mobile re-entry, or device flows that must survive interruptions. The same pattern is also where security teams most often review whether a refresh token is justified, because unnecessary long-lived access increases the blast radius of a stolen token or a compromised client.

What offline_access Changes in OAuth Flow Design

Once offline_access is requested and accepted, the application may receive a refresh token that can be used to obtain new access tokens without asking the user to sign in again. That shifts security requirements toward secure storage, explicit revocation handling, and policies that govern how long a refresh token can remain valid.

It also affects how teams think about consent and scope granularity. If a client can function without persistent access, requesting offline_access broadens the trust relationship for no benefit. If it genuinely needs renewal, the broader scope should still be paired with the narrowest other scopes possible so that long-lived access does not become overbroad access.

Security Implications of Refresh-Token Grants

Because offline_access can unlock refresh-token issuance, it materially changes what an attacker can gain from token theft, exposed logs, or compromised application storage. A stolen refresh token can outlive a single access token and may be useful for continued access even after the original browser session has expired.

That is why the scope is best understood as a durability control, not a privilege to read data. The danger comes from persistence, reuse, and weak revocation discipline, especially where applications store tokens poorly or fail to detect when a refresh token family should be invalidated.

Risk and Threat Considerations

offline_access increases exposure because it can create a long-lived credential path after the original interactive sign-in has finished. If a refresh token is stolen, copied from logs, or retained by a compromised client, the attacker may keep renewing access tokens without needing to reauthenticate the user.

Failure mechanism: The authorisation server issues a refresh token, but the client or surrounding platform fails to protect it, rotate it, or revoke it promptly when the grant is no longer valid.

Impact: Persistent unauthorised access can follow a single compromise, with token replay, prolonged session abuse, and delayed detection because the attacker no longer needs the original login ceremony.

Standards & Framework Alignment

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

OWASP ASVS, NIST SP 800-53 Rev 5 and CIS Controls v8 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP ASVSV10 — OAuth and OIDCoffline_access is an OAuth/OIDC scope that governs refresh-token issuance and consent flow design.
Recommendation — Validate refresh-token use, consent handling, and token lifetime behaviour in OAuth/OIDC integrations.
NIST SP 800-53 Rev 5IA-5 — Authenticator ManagementRefresh tokens are identity-bearing authenticators that require lifecycle control, rotation, and revocation.
AC-6 — Least Privilegeoffline_access should be granted only when persistent access is genuinely needed, to limit standing exposure.
Recommendation — Manage refresh tokens as authenticators, with protection, rotation, and revocation controls. Restrict offline_access to apps with a clear need for long-lived renewal and minimal scope.
CIS Controls v8CIS-5 — Account ManagementThe scope affects long-lived access grants and revocation discipline for application accounts and tokens.
Recommendation — Review and revoke unnecessary long-lived OAuth grants as part of account and access management.

Practitioner Guidance

Governance implication: Treat offline_access as an exception that must be justified by a real offline or background-renewal need. Review whether the application can operate with shorter sessions or narrower scope requests before allowing persistent refresh capability.

What to watch for: Excessive use of offline_access across low-value apps, token stores that are not protected like secrets, and grants that remain active long after the user or integration no longer needs them. Those are usually signs that the scope has become routine rather than deliberate.

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