Kizspy | Question: 23
(Choose 1 answer)
The following .NET 8 code is in Program.cs. What is its purpose?
var app = builder.Build();
// ...
app.UseAuthentication();
app.UseAuthorization();
// ...
app.Run();
A. It registers the authentication services.
B. It adds the authentication and authorization middleware components to the request pipeline.
C. It configures the default authentication scheme.
D. It is redundant and has no effect.
FJOVERFLOW.COM