Skip to content

[Bug] Access token validation fails after upgrading Microsoft.IdentityModel.JsonWebTokens from 7.2.0 to 7.3.0 #3298

@cieciurm

Description

@cieciurm

Which version of Microsoft.IdentityModel are you using?
Note that to get help, you need to run the latest version.

Microsoft.IdentityModel.JsonWebTokens 7.3.0

Where is the issue?

  • M.IM.JsonWebTokens
  • M.IM.KeyVaultExtensions
  • M.IM.Logging
  • M.IM.ManagedKeyVaultSecurityKey
  • M.IM.Protocols
  • M.IM.Protocols.OpenIdConnect
  • M.IM.Protocols.SignedHttpRequest
  • M.IM.Protocols.WsFederation
  • M.IM.TestExtensions
  • M.IM.Tokens
  • M.IM.Tokens.Saml
  • M.IM.Validators
  • M.IM.Xml
  • S.IM.Tokens.Jwt
  • Other (please describe)

Is this a new or an existing app?

The app is in production and I have upgraded to a new version of Microsoft.IdentityModel.JsonWebTokens.

Repro

I have a regular ASP.NET Core app using JWT authentication:

services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme)
    .AddJwtBearer(options =>
    {
        options.Authority = Configuration.GetValue<string>("Identity:Authority");
        options.Audience = Configuration.GetValue<string>("Identity:Audience");
        options.RequireHttpsMetadata = true;

    })

We are using IdentityServer 4 (which is compliant with OIDC and OAuth2) as identity provider issuing access tokens.

Expected behavior
Access token should be validated successfully after the update of Microsoft.IdentityModel.JsonWebTokens from version 7.2.0 to 7.3.0

Actual behavior
Access token is rejected and the error message says:

The signature key was not found

Additional context / logs / screenshots / links to code
I am sharing partial screenshot of JWT due to security reasons.

Image

I can provide full JWT via secure channel.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions