You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks there are some important changes in authentication/authorization configuration in .NET 7. Here dotnet/aspnetcore#42802 we can read that calls to UseAuthentication() and UseAuthorization() where removed from templates. A few weeks later here dotnet/aspnetcore@63750b9 a call to UseAuthorization() was added, but there is no call to UseAuthentication(). This strange change should be documented. I have found some discussion here dotnet/aspnetcore#39855. Maybe @DamianEdwards or @captainsafia can help.
There are a lot of pages in the documentation where we can see calls to both methods. We can also read that it is important to have UseAutentication before UseAuthorization. All this information have to be verified and corrected.
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
ID: 94bfd895-d2af-390b-0801-428b36a27ff4
Version Independent ID: 0e0d870e-e49a-e16c-c259-68d58e701b8f
@Andrzej-W Thanks for the issue! We're working on updating the docs for .NET 7 now and will include this information. We'll also include a note in the upgrade guide.
It looks there are some important changes in authentication/authorization configuration in .NET 7. Here dotnet/aspnetcore#42802 we can read that calls to
UseAuthentication()
andUseAuthorization()
where removed from templates. A few weeks later here dotnet/aspnetcore@63750b9 a call toUseAuthorization()
was added, but there is no call toUseAuthentication()
. This strange change should be documented. I have found some discussion here dotnet/aspnetcore#39855. Maybe @DamianEdwards or @captainsafia can help.There are a lot of pages in the documentation where we can see calls to both methods. We can also read that it is important to have UseAutentication before UseAuthorization. All this information have to be verified and corrected.
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: