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

Client Metadata

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

In OAuth 2.0 and OpenID Connect, Client Metadata is the set of registered properties describing a client application, such as its redirect URIs, grant types, name and public keys. Attackers who can register or alter metadata, for example by adding a malicious redirect URI, can capture authorisation codes. Defenders require exact redirect URI matching and review dynamic client registrations.

What Client Metadata Is and Why It Exists

Client metadata is the registration record that tells an OAuth or OpenID Connect ecosystem what a client is allowed to do and how it should be treated. Its purpose is to make client behaviour explicit, so the authorization server can distinguish a legitimate application from one that is misconfigured, spoofed, or trying to redirect users elsewhere.

Because this data governs trust decisions, even small changes can have large security effects. A redirect URI, grant type, or public key is not just descriptive text, it can determine where tokens are sent, which flows are allowed, and whether the server can authenticate the client at all.

What Client Metadata Typically Contains

The exact fields vary by implementation, but common metadata includes redirect URIs, client name, grant types, response types, token endpoint authentication method, and public keys or other cryptographic material. In dynamic registration models, these values may be supplied during onboarding rather than being hard-coded by an administrator.

That flexibility is useful, but it also creates a policy surface. If registration is too permissive, a client can claim capabilities it should not have. If metadata is too loosely governed, later changes can silently alter the client’s security posture and the way the authorization server routes or validates requests.

How Client Metadata Shapes OAuth and OIDC Trust

Client metadata sits at the point where application identity, redirect handling, and token issuance meet. Exact redirect URI matching is critical because even a small mismatch can allow an attacker to steer an authorization code toward an endpoint they control, especially when a malicious URI is accepted during registration or update.

This is why metadata is not merely configuration, it is part of the trust contract between the client and the authorization server. A reviewer should treat client metadata as security-relevant source data, not as convenience settings. The same applies to public keys and other proof material, which influence how the server authenticates the client and whether assertions can be trusted.

For implementers comparing registration models and trust policies, OAuth Client ID Metadata Documents (CIMD) Guide explains how metadata documents change registration and review patterns. For the broader registration threat model, OAuth Dynamic Client Registration Security Guide is the most direct companion reference.

Governance and Review of Client Metadata

Good governance focuses on provenance, least privilege, and change control. Client metadata should be reviewed before trust is granted, then monitored for drift after registration so that redirect URIs, key material, and other sensitive fields do not change without scrutiny. Where dynamic client registration is used, approval workflows and policy enforcement matter as much as the protocol itself.

Client metadata also needs lifecycle ownership. Someone must be accountable for whether the registered properties still match the application’s real behaviour, whether a client should remain active, and whether a registration still reflects an approved business use. That is especially important where the same metadata drives both login initiation and token exchange.

For adjacent trust and discovery patterns, Agent Cards vs OAuth Client Metadata clarifies how asserted identity and registered metadata differ. MCP Security Guide is also useful where OAuth client metadata is part of a broader authorization and tool-access design.

Operational Failure Modes and Defensive Checks

The most important defensive checks are validation and review. Redirect URIs should match exactly, metadata changes should be audited, and any registration path that accepts URLs or assertions should be treated as a high-value trust boundary. Defenders should also verify whether metadata was created manually, through a trusted software statement, or through an automated registration workflow, because each path has different assurance assumptions.

When something goes wrong, the practical question is not only whether a client was registered, but whether the server accepted a bad claim about that client. That includes malicious redirect endpoints, spoofed public keys, overbroad grant types, and stale registrations that continue to work after the application owner has lost control of the client.

For more detail on the standards behind these checks, RFC 6749: The OAuth 2.0 Authorization Framework defines the core client and authorization model, while RFC 7523: JWT Profile for OAuth 2.0 Client Authentication and Authorization Grants and RFC 8707: Resource Indicators for OAuth 2.0 show how client authentication and token audience control strengthen the trust model.

Risk and Threat Considerations

Client metadata is a trust anchor, so compromise of the registration record can translate directly into token theft, authorization code interception, or silent impersonation of a legitimate client. The risk is highest where metadata can be registered or modified without strong validation, because an attacker only needs one accepted redirect URI or one weakly governed update path to divert traffic.

Failure mechanism: The server accepts an attacker-controlled property, usually a redirect URI or key-related field, and then issues codes or tokens according to that false registration state. Exact matching and controlled review are the key mechanisms that stop that abuse.

Impact: A compromised metadata record can expose authorization codes, enable client impersonation, and undermine the integrity of the whole OAuth or OIDC trust relationship.

Standards & Framework Alignment

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

OWASP API Security Top 10 addresses the attack and risk surface, while NIST SP 800-53 Rev 5 sets the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
NIST SP 800-53 Rev 5IA-5 — Authenticator ManagementClient metadata often includes keys, secrets, and other authenticating material
Recommendation — Manage client credentials and key material through controlled lifecycle processes.
OWASP API Security Top 10API2 — Broken AuthenticationWeak client metadata handling can undermine authentication and trust decisions
Recommendation — Harden client authentication and reject ambiguous or weakly bound client claims.

Practitioner Guidance

Why practitioners should care: Treat client metadata as security policy, not as an administrative label set. The fields that look operational, especially redirect URIs and public keys, are often the very fields that decide whether an attacker can receive codes or present themselves as a trusted client.

What to watch for: Pay special attention to dynamic registration, metadata updates, and any client onboarding flow that accepts URLs or cryptographic claims from the client itself. Those are the points where review, approval, and exact validation matter most.

Practitioner takeaway: If your process cannot explain who approved the metadata, when it changed, and why it is still correct, your client trust model is incomplete.

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 November 26, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org