By NHI Mgmt Group Editorial TeamPublished 2026-06-23Domain: Best PracticesSource: Curity

TL;DR: Teams can customize token contents, issue scopes dynamically, and use token exchange, verified claims, and impersonation to control authorization in API-driven architectures, according to Curity. The key issue is not token formatting but how much authority is embedded in tokens at issuance time.


At a glance

What this is: This is a tutorial collection on controlling token issuance, claims, and authorization decisions in API architectures, with the main finding that access logic can be shifted into token handling rather than left to downstream services.

Why it matters: It matters because IAM teams need to decide where authorization is enforced, how much trust to place in token claims, and how to avoid overloading APIs with identity logic that should be governed centrally.

👉 Read Curity's tutorial set on token claims, exchange, and authorization control


Context

API authorization depends on more than whether a token is valid. The harder question is what authority gets embedded into the token, which claims are trusted by downstream services, and how much decision-making is shifted into issuance time rather than runtime policy enforcement.

That matters for IAM, NHI, and API security programmes because token design becomes part of governance, not just implementation detail. The more teams customize scopes, claims, and exchange flows, the more they need a clear model for who can assert what, when, and under which assurance level.

For teams building modern identity architectures, Curity’s tutorial set sits in the practical middle ground between authentication and authorization. It is most useful when treated as a set of implementation patterns that expose governance choices, not as a product feature tour.


Key questions

Q: How should security teams govern custom claims in API tokens?

A: Security teams should treat custom claims as governed access inputs, not convenient metadata. Every claim needs an owner, a source of truth, a freshness rule, and a decision boundary that says whether it can influence authorization. If a claim affects access, it should be reviewed like any other privilege-bearing control.

Q: When should token exchange be used instead of passing the original token?

A: Token exchange makes sense when the downstream service needs a narrower audience, a different trust context, or a fresh token with reduced scope. It should not be used simply to move tokens around. If the original token already exposes more authority than the target service needs, exchange is a useful containment step.

Q: What do teams get wrong about impersonation flows?

A: Teams often underestimate how easily impersonation blurs accountability. If the system can act as another identity without a clear audit trail, incident response becomes difficult and access reviews lose meaning. Impersonation should always preserve the original actor, the reason for delegation, and the exact privileges exercised.

Q: How do you know if token claims are too trusted by APIs?

A: A practical warning sign is when APIs accept claims as if they were permanent identity facts, especially for roles, entitlements, or sensitive attributes. If changing the upstream claim source would silently change access across many services, the architecture is overdependent on token contents and underdependent on policy.


Technical breakdown

How token issuance authorizers change API authorization

Token issuance authorizers move part of the authorization decision into the token minting path. Instead of every API re-evaluating the same conditions, the identity server can decide whether scopes should be issued at all, based on client context, claims, or policy inputs. This changes the control point, but it also creates a dependency on the quality of issuance-time signals. If those signals are stale, incomplete, or overtrusted, the downstream token becomes a vehicle for misplaced authority rather than a proof of access. The architectural question is therefore not just whether claims exist, but whether they were justified at issuance.

Practical implication: define which authorization decisions belong at issuance time and which must remain at runtime policy evaluation.

Token exchange and impersonation in delegated access flows

Token exchange and impersonation both deal with delegated access, but they do so with different governance consequences. Token exchange creates a new token that represents a new context or audience, while impersonation intentionally lets one actor act as another. In both cases, the risk is identity confusion if the chain of delegation is not explicit and auditable. Claims that are valid in the original token may not be valid after exchange, and impersonation can blur whether the system is acting on behalf of a user, a service, or an administrative process. That makes delegation provenance a first-class security control.

Practical implication: trace and log every delegation hop so downstream services can verify the acting context, not just the token signature.

Verified claims and claim value providers in token design

Verified claims are only useful when the system can explain what was verified, by whom, and how recently. Claim value providers and custom claim logic let teams enrich tokens with attributes from authentication or external sources, but that flexibility can become a trust leak if claims are treated as permanent identity facts. In practice, claims are often operational assertions with limited shelf life, not universal truth. The stronger the claim, the more important its freshness, source, and binding to the authenticated subject. That is why claim design must be tied to assurance, not convenience.

Practical implication: classify claims by trust level and expiry so APIs do not consume stale assertions as if they were identity guarantees.


NHI Mgmt Group analysis

Token claims are an authorization policy surface, not just a transport detail. Once scopes and claims are used to make downstream decisions, token design becomes part of the control plane. That means governance has to cover who can assert claims, which claims are authoritative, and when token contents should be re-evaluated. Practitioners should treat claim design as an access model decision, not a formatting choice.

Delegation chains create accountability gaps when they are not explicit. Token exchange and impersonation both make it easy to lose sight of the original actor, the acting context, and the reason authority was extended. That matters because the same downstream token can describe very different trust relationships depending on how it was minted. Practitioners need delegation provenance, not just signed tokens.

Claim freshness is the hidden control variable in token-based authorization. A claim is only as good as the assurance behind it and the time since it was issued. This is the same basic failure mode that appears in stale entitlements and overtrusted directory attributes, just compressed into token lifetime. The implication is that teams must decide which claims are safe to embed and which must be resolved dynamically at decision time.

Custom token content can simplify integration while increasing governance debt. The more teams tailor token contents per client or workflow, the more they risk creating incompatible trust assumptions across services. That does not mean customization is wrong. It means every custom claim, exchange rule, or impersonation path needs a lifecycle owner, an audit trail, and a clear revocation path.

From our research:

  • 62% of all secrets are duplicated and stored in multiple locations, causing unnecessary redundancy and increasing the risk of accidental exposure, according to The 2025 State of NHIs and Secrets in Cybersecurity.
  • 91% of former employee tokens remain active after offboarding, which shows how quickly delegated authority can outlive its original purpose.
  • The Ultimate Guide to NHIs is a useful next step for teams mapping token governance to lifecycle control.

What this signals

Token governance is becoming a lifecycle problem as much as an API design problem. When claims, scopes, and exchange paths are embedded into access decisions, the programme needs ownership, review cycles, and revocation logic that extend beyond the identity provider. For teams looking at adjacent governance patterns, the Ultimate Guide to NHIs is the right baseline for lifecycle thinking.

The more a platform relies on custom claims, the more it needs a consistent standard for trust boundaries and token freshness. That is where API security, IAM governance, and NHI-style lifecycle thinking start to overlap in practical operations.

Curity’s topic set also points to a broader pattern: delegated access becomes fragile when teams cannot distinguish descriptive claims from authority-bearing claims, which is why token design should be reviewed alongside privileged access and identity assurance controls.


For practitioners

  • Map token claims to decision authority Document which claims are merely descriptive and which are allowed to drive authorization decisions in APIs, then require explicit approval for any claim that changes access scope.
  • Separate issuance-time and runtime controls Use token issuance logic for coarse eligibility checks and keep sensitive, fast-changing decisions in runtime policy evaluation so stale assertions do not outlive their context.
  • Trace delegation provenance end to end Log original subject, exchanging actor, target audience, and justification for token exchange or impersonation so security teams can reconstruct who acted on behalf of whom.
  • Classify claims by trust and freshness Tag verified claims, derived claims, and self-asserted claims differently, then set expiry or revalidation rules for each class based on business impact.

Key takeaways

  • Token claims shape authorization policy, so teams must govern them as access decisions rather than as harmless metadata.
  • Delegation flows such as token exchange and impersonation require explicit provenance because signed tokens alone do not preserve accountability.
  • Freshness, source, and purpose are the controls that determine whether a claim is safe to trust across API boundaries.

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.

FrameworkControl / ReferenceRelevance
NIST CSF 2.0PR.AA-01Token claims and delegated access shape authentication assurance and access decisions.
NIST Zero Trust (SP 800-207)SC-4Token exchange and claim trust are core to zero trust decision enforcement.
OWASP Non-Human Identity Top 10NHI-02Custom claims and token lifecycle choices affect non-human access governance.

Treat token contents as governed NHI assets and review their scope, freshness, and revocation path.


Key terms

  • Token Issuance Authorizer: A token issuance authorizer is a policy decision point that decides whether an access token should receive particular scopes or claims before it is minted. It moves part of authorization upstream into the issuance process, so governance depends on the quality of the input signals and the precision of the policy logic.
  • Token Exchange: Token exchange is a delegation pattern that swaps one token for another to represent a different audience, context, or authority boundary. It is useful for narrowing access, but it also creates a new trust event that must preserve provenance and scope control across the chain.
  • Verified Claims: Verified claims are attributes that have been checked by a trusted process and then embedded into a token or identity assertion. Their security value depends on how recently they were verified, what source backed them, and whether downstream systems treat them as bounded assertions rather than permanent truth.

What's in the full article

Curity's full tutorial set covers the operational detail this post intentionally leaves for the source:

  • Step-by-step configuration examples for token issuance authorizers and claim rules
  • Implementation guidance for token exchange and impersonation flows in Curity Identity Server
  • Tutorial-level examples for verified claims, identity assurance, and custom claim providers
  • Configuration patterns for per-client custom token issuers and claim testing

👉 Curity's full tutorial set covers configuration steps, token procedures, and claim testing examples.

Deepen your knowledge

NHI governance, agentic AI identity, and machine identity lifecycle are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If you are responsible for identity security strategy or NHI governance in your organisation, it is worth exploring.
NHIMG Editorial Note
Published by the NHIMG editorial team on 2026-06-23.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org