Description
In that article, under the Kestrel section, it says that Authentication is enabled by the following highlighted code.
The highlighted code includes builder.Services.AddAuthentication, builder.Services.AddAuthorization, and app.UseAuthorization.
While app.UseAuthentication is included in the code, it is not highlighted as if it is not required when manually implementing this.
It does not make sense to me that this should be excluded - not highlighted as well - since Authentication is required before Authorization.
Note that it was also excluded from the list of APIs used in the preceding code.
I suspect it was simply missed.
I appreciate any feedback or clarity you can provide.
Thank you
Mark
Page URL
https://learn.microsoft.com/en-us/aspnet/core/security/authentication/windowsauth?view=aspnetcore-8.0&tabs=visual-studio
Content source URL
https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/security/authentication/windowsauth.md
Document ID
fbc36c26-9992-1f4c-66d3-02f898ee7ec4
Platform Id
7e670460-f1b6-a509-340f-e6936ea78313
Article author
@wadepickett
Metadata
- ID: 401ad9a0-9e51-80a2-5846-82e9790d7257
- PlatformId: 7e670460-f1b6-a509-340f-e6936ea78313
- Service: aspnet-core
- Sub-service: security
Associated WorkItem - 499605
Description
In that article, under the Kestrel section, it says that
Authentication is enabled by the following highlighted code.The highlighted code includes
builder.Services.AddAuthentication,builder.Services.AddAuthorization, andapp.UseAuthorization.While
app.UseAuthenticationis included in the code, it is not highlighted as if it is not required when manually implementing this.It does not make sense to me that this should be excluded - not highlighted as well - since Authentication is required before Authorization.
Note that it was also excluded from the list of
APIsused in the preceding code.I suspect it was simply missed.
I appreciate any feedback or clarity you can provide.
Thank you
Mark
Page URL
https://learn.microsoft.com/en-us/aspnet/core/security/authentication/windowsauth?view=aspnetcore-8.0&tabs=visual-studio
Content source URL
https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/security/authentication/windowsauth.md
Document ID
fbc36c26-9992-1f4c-66d3-02f898ee7ec4
Platform Id
7e670460-f1b6-a509-340f-e6936ea78313
Article author
@wadepickett
Metadata
Associated WorkItem - 499605