-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Description
Is there an existing issue for this?
- I have searched the existing issues
Is your feature request related to a problem? Please describe the problem.
This is WRT the sample app at https://github.com/dotnet/aspnetcore/tree/main/src/Security/samples/CustomPolicyProvider.
On the docs side, we maintain both ...
- Pre .NET 8 version of this sample: https://github.com/dotnet/AspNetCore.Docs.Samples/tree/main/security/authorization/OldStyleAuthRequirements
- .NET 8 or later version that uses
IAuthorizationRequirementData
: https://github.com/dotnet/AspNetCore.Docs.Samples/tree/main/security/authorization/AuthRequirementsData
I'm updating our coverage to better describe how the sample works and how to demo an age requirement, noting that our article describing the use of IAuthorizationRequirementData
and the sample is versioned .NET 8 or later. We're only going to maintain the .NET 7 (or earlier) approach for the code and text shown in the .NET 8 release notes, where I'm also making some small updates.
Since the CustomPolicyProvider
sample app uses the older approach but is still being built for each release after .NET 7 here, do you just want to drop it from the engineering repo?
Describe the solution you'd like
Possibly drop the https://github.com/dotnet/aspnetcore/tree/main/src/Security/samples/CustomPolicyProvider sample app from this repo.
Additional context
No response