AspNetCore.Docs icon indicating copy to clipboard operation
AspNetCore.Docs copied to clipboard

.NET 7: Update doc about UseAuthentication() and UseAuthorization() methods

Open Andrzej-W opened this issue 2 years ago • 2 comments

It looks there are some important changes in authentication/authorization configuration in .NET 7. Here https://github.com/dotnet/aspnetcore/pull/42802 we can read that calls to UseAuthentication() and UseAuthorization() where removed from templates. A few weeks later here https://github.com/dotnet/aspnetcore/commit/63750b9ab756b6b86cba95c44b56e4cc9919ed0e 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 https://github.com/dotnet/aspnetcore/issues/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.

Andrzej-W avatar Oct 07 '22 20:10 Andrzej-W

@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.

captainsafia avatar Oct 07 '22 20:10 captainsafia

@captainsafia Any progress on this issue?

doggy8088 avatar May 05 '24 03:05 doggy8088

any update?

Laftek avatar Jul 28 '24 12:07 Laftek