aspnetcore icon indicating copy to clipboard operation
aspnetcore copied to clipboard

JwtBearer PACKAGE.md claims support for .NET Core 3.0+ and .NET Standard 2.1

Open ojamte opened this issue 2 weeks ago • 1 comments

The README of Microsoft.AspNetCore.Authentication.JwtBearer (src/Security/Authentication/JwtBearer/src/PACKAGE.md) says under Key Features:

Works with .NET Core 3.0 and newer, as well as .NET Standard 2.1.

No version of the package has a netstandard2.1 asset, and each version only targets its own TFM (10.0.x: net10.0, 11.0.0: net11.0). Installing 11.0.0 in a net10.0 project fails:

error NU1202: Package Microsoft.AspNetCore.Authentication.JwtBearer 11.0.0 is not compatible with net10.0 (.NETCoreApp,Version=v10.0). Package Microsoft.AspNetCore.Authentication.JwtBearer 11.0.0 supports: net11.0 (.NETCoreApp,Version=v11.0)

Combined with the Visual Studio Updates tab listing 11.0.0 as an update for net10.0 projects (NuGet/Home#5725), the README suggests the update should work.

Suggested fix: replace the bullet with something like "Each version targets the matching ASP.NET Core version (for example 10.0.x for net10.0)." Also, under Main Types, wtBearerOptions should be JwtBearerOptions.

ojamte avatar Nov 18 '26 07:11 ojamte

Triage Summary

Area: area-auth (JwtBearer package README at src/Security/Authentication/JwtBearer/src/PACKAGE.md) Type: Task (documentation correction)

Potential Duplicates

  • None found

Generated by Issue Triage Agent for dotnet/aspnetcore for #70690 · copilot · auto · 21.5 AIC · ⌖ 1.01 AIC · ⊞ 7.6K · ◷

github-actions[bot] avatar Nov 18 '26 08:11 github-actions[bot]