Join our Newsletter — 33% off our NHI Course
Authentication, Authorisation & Trust

OIDC token

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

An OIDC token is a signed credential used in OpenID Connect to prove a user or client identity after authentication. It typically appears as an ID token, access token, or refresh token, and carries claims such as subject, issuer, audience, and expiry for validation by relying systems.

What OIDC Tokens Are For

OIDC tokens are the signed artifacts that let a relying system validate who authenticated and how that identity should be interpreted. They are not just transport data, they are the trust handoff from the identity provider to the application.

In practice, the token type matters. An ID token carries authentication identity claims, while an access token is meant for API authorization and a refresh token is used to obtain new tokens without re-authentication. Mixing those roles is a common design mistake because each token is trusted differently by downstream systems.

OIDC is built on top of OAuth 2.0, so the token must be assessed in the context of the relying party, the intended audience, and the validation rules around issuer, subject, expiry, and signature. For the underlying OIDC model, see OpenID Connect Core 1.0.

Token Types and Claims

The term “OIDC token” is often used loosely, but the security meaning changes by token class. An ID token confirms authentication, an access token authorizes access to a resource, and a refresh token extends a session by allowing token renewal. Treating them as interchangeable can create confused-deputy problems and unnecessary exposure of higher-value credentials.

Claims are the token’s security payload. Fields such as iss, sub, aud, and exp help the receiving system decide whether the token was issued by a trusted authority, whether it was meant for this application, and whether it is still valid. The token is only as trustworthy as the receiver’s validation logic.

In architectures that use delegation or token handoff, the boundary becomes even more important. A token exchanged for another token should be scoped to the next hop, not reused broadly across services. The oauth token exchange standard is a useful reference point for that pattern: RFC 8693: OAuth 2.0 Token Exchange.

Validation, Audience, and Sender Constraints

OIDC tokens fail safely only when the relying system verifies the full set of trust conditions, not just the presence of a signature. Issuer validation, audience restriction, nonce handling where applicable, and expiry checking are all part of making the token bound to the right client and the right session.

Audience restriction is especially important because a token accepted by the wrong service becomes a bearer artifact that can be replayed elsewhere. Sender-constrained designs reduce that risk by tying the token to a client proof, such as mutual TLS or proof-of-possession methods. The relevant standards are RFC 8705: OAuth 2.0 Mutual-TLS Client Authentication and Certificate-Bound Access Tokens and RFC 9449: OAuth 2.0 Demonstrating Proof of Possession.

When token audience or resource scoping is a concern, token design should reflect the target API explicitly. That is why resource indicators matter in OAuth deployments: RFC 8707: Resource Indicators for OAuth 2.0.

Where OIDC Tokens Break Down

OIDC token misuse usually appears as overbroad reuse, weak validation, or storage exposure. A token that leaks from a browser, log, proxy, CI pipeline, or third-party integration can often be replayed until it expires, and refresh tokens are especially sensitive because they extend the life of the session.

Another failure mode is trusting token contents without checking the signing key, issuer, or audience against the expected identity provider configuration. In federated environments, that can let an attacker present a valid token that was never meant for the service accepting it.

Token handling is also vulnerable to poor lifecycle discipline. Long-lived refresh tokens, token passthrough between services, and permissive downstream acceptance all expand the attack surface and make compromise harder to contain. A practical overview of these risks is captured in the RFC 9700: Best Current Practice for OAuth 2.0 Security.

Risk and Threat Considerations

OIDC tokens are attractive to attackers because they can function as ready-made proof of identity or access. If a token is stolen, replayed, or accepted by the wrong audience, the attacker may bypass interactive login entirely and move straight into application access or delegated API use.

Failure mechanism: Weak token validation, bearer-token replay, and poor storage or forwarding controls let an attacker reuse a valid token outside the intended client, session, or audience. Refresh tokens increase the impact because they can mint new access tokens after the original session is gone.

Impact: Compromise can lead to unauthorized application access, lateral movement across federated services, data exposure, or persistence through token renewal. In real-world incidents, token theft often becomes the shortest path from initial access to broader account or SaaS compromise.

Standards & Framework Alignment

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

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

FrameworkControl / ReferenceRelevance
NIST SP 800-63Digital Identity GuidelinesOIDC tokens are identity assertions used to establish authenticated sessions
Recommendation — Use NIST 800-63 assurance concepts to verify that the asserted identity is strong enough for the relying party.
NIST SP 800-53 Rev 5IA-5 — Authenticator ManagementOIDC tokens are identity-bearing artifacts whose issuance, rotation, and protection need lifecycle control
IA-9 — Identification and Authentication (Non-Organizational Users)OIDC tokens authenticate external users and federated identities to relying systems
Recommendation — Control token lifecycle handling so refresh and access artifacts are issued, rotated, and revoked safely. Validate federated token identity before granting access to external users or partner sessions.
OWASP ASVSV10 — OAuth and OIDCOIDC tokens are governed by application-level OAuth/OIDC authentication and token-handling requirements
Recommendation — Verify OIDC integration against OAuth and OIDC requirements for token validation and session handling.
CIS Controls v8CIS-16 — Application Software SecurityOIDC tokens depend on secure implementation, validation, and handling inside applications
Recommendation — Test application token handling to prevent insecure acceptance, storage, and replay of OIDC tokens.

Practitioner Guidance

What to watch for: Treat OIDC tokens as trust objects, not opaque strings. The important question is whether the application validates the token’s issuer, audience, expiry, and signing chain in a way that matches the actual integration pattern.

Practitioner note: The most common design error is accepting a token because it is “valid somewhere” rather than valid for this system. If the application cannot explain why it trusts a token, the integration is probably too loose.

Practitioner takeaway: Keep ID tokens, access tokens, and refresh tokens distinct in storage, validation, and usage so one compromise does not automatically become a full session compromise.

Deepen Your Knowledge

Sign up to our weekly newsletter — get 33% off our NHI Foundation Level Course

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