-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Closed
Labels
NativeAOTarea-authIncludes: Authn, Authz, OAuth, OIDC, BearerIncludes: Authn, Authz, OAuth, OIDC, Bearer
Milestone
Description
The following program produces AOT warnings and doesn't work after being published to NativeAOT:
using System.Security.Claims;
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddAuthentication().AddJwtBearer();
builder.Services.AddAuthorization();
var app = builder.Build();
app.MapGet("/", () => "Hello, World!");
app.MapGet("/secret", (ClaimsPrincipal user) => $"Hello {user.Identity?.Name}. My secret")
.RequireAuthorization();
app.Run();We should enable this to work in ASP.NET 8 with NativeAOT.
Underlying issues:
pocki, AdisonCavani, czmirek, vborza and 7amou3
Metadata
Metadata
Assignees
Labels
NativeAOTarea-authIncludes: Authn, Authz, OAuth, OIDC, BearerIncludes: Authn, Authz, OAuth, OIDC, Bearer