IDX10223 .NET Origin: Application & API OSI layer 7 · Application Last updated 12 Oct 2026

Bearer error="invalid_token": IDX10223: Lifetime validation failed. The token is expired / IDX10501: Signature validation failed

ASP.NET Core’s JwtBearer middleware rejected the token — expired (IDX10223), signature key not found (IDX10501/IDX10503), or wrong issuer/audience (IDX10214/IDX10205).

Exact message you may see Lifetime validation failed. The token is expiredSignature validation failed
Seen on: .NET

Meaning

The WWW-Authenticate header and logs carry the IDX code. Clock skew, keys rotated at the identity provider, Authority/Audience misconfiguration, or tokens for another API are common.

Common causes

  • Token expired (IDX10223)
  • Signing key not found / wrong authority (IDX10501, IDX10503)
  • Audience mismatch (IDX10214)
  • Issuer mismatch (IDX10205)

⚡ Quick fix

  1. Enable logging (IdentityModelEventSource.ShowPII in dev) to see details
  2. Set Authority and Audience to match the token
  3. Refresh tokens before expiry; allow small ClockSkew

Detailed fix by platform

C#

  1. csharp
    builder.Services.AddAuthentication().AddJwtBearer(o => {
        o.Authority = "https://login.example.com/";
        o.Audience = "api://orders";
    });

How to diagnose

  1. Code — IDX number
  2. Token — iss/aud/exp claims
  3. Config — Authority/Audience

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

Where this error sits

Origin: Application & API. Errors that are often confused with or caused by this one (click to open):

401 — HTTP 401 Unauthorized (HTTP)401454 — 454 4.7.0 Temporary authentication failure (SMTP AUTH backend unavailable) (Email / SMTP)454535 5.7.3 — Microsoft 365: 535 5.7.3 Authentication unsuccessful (SMTP AUTH / client submission blocked) (Email / SMTP)535 5.7.3AADSTS50076 — Azure AD (Entra ID): AADSTS50076 / AADSTS50079 — multi-factor authentication required (Azure)AADSTS50076AADSTS50126 — AADSTS50126: Error validating credentials due to invalid username or password (Azure)AADSTS50126AADSTS700016 — Azure AD (Entra ID): AADSTS700016 Application not found in the directory (Azure)AADSTS700016Authentication failed — fatal: Authentication failed for 'https://github.com/x/y.git/' (Git)Authentication failedAuthentication token manipulation error — passwd: Authentication token manipulation error (Linux)Authentication token …IDX10223

Explore the map of this error Full error map →

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.

💬 What worked for others

No tips yet — did something else fix this for you?

Share what worked for you

Tips are checked by an editor before they appear. Links are removed.