Open akhanalcs opened 1 year ago
You may use
builder.Services.AddAuthentication().AddBearerToken(IdentityConstants.BearerScheme);
builder.Services.AddAuthorizationBuilder();
However you might wanna try the new net 8 IdentityEndpoints. Like
builder.Services.AddAuthentication();
builder.Services.AddAuthorizationBuilder();
builder.Services.AddIdentityApiEndpoints<TodoUser>()
.AddRoles<IdentityRole>()
.AddEntityFrameworkStores<AppDbContext>();
The AddIdentityApiEndpoints
Fixed.
@davidfowl It doesn't look fixed though.
4>Program.cs(13,1): Error CS7069 : Reference to type 'IRazorComponentsBuilder' claims it is defined in 'Microsoft.AspNetCore.Components.Endpoints', but it could not be found
Just synced the project and tried it again:
The Net8 branch works for me. I'm using 8.0.100-rc.1.23455.8 on Win11
I'm getting this error after updating the SDK to latest version:
These are my sdks:
Hi @davidfowl, I can make this error go away:
With this change:
No error:
Do you recommend it?