-
Notifications
You must be signed in to change notification settings - Fork 25.1k
Correct iard.md #32595
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Correct iard.md #32595
Conversation
Remove all references to the MinimumAgePolicyProvider that is not used when using IAuthorizationRequirementData. The middleware constructs a policy adding the requirements from IAuthorizationRequirementData.GetRequirements https://github.com/dotnet/aspnetcore/blob/82b0fc9f43ae2bd50fb95f427116efc2f6f094df/src/Security/Authorization/Policy/src/AuthorizationMiddleware.cs#L130
@adityamandaleeka can you assign someone to review this? |
@Rick-Anderson ... I don't understand why we'd remove this because this is how to set up a custom Note in passing that the docs could just point to the PU's demo at ... https://github.com/dotnet/aspnetcore/tree/main/src/Security/samples/CustomPolicyProvider ... and shed the sample that the docs maintain (in the samples repo). The PU's sample is more likely to be kept up to date because they have it wired to their tests. I recommend at least closing this and asking for an issue. |
|
@tonyhallett any chance you could do #35045 |
@wadepickett @tdykstra ... Just passing through the PRs to see what's going on with some of the lingering ones. I still think that this isn't the best approach here. I think either of the following make sense ...
|
@guardrex, I agree with your suggestion to cross link to the example with remarks, since you were able to verify the PU wants to use that example to demo the use case. Great approach. My vote is that if you want to take that on since you already have your brain in it, that's great! However, if it sets you back for other priority work feel free to queue it up as an issue in the backlog indicating priority and we will see if one of us can pick it up next sprint. @tonyhallett, your work to help improve this topic is greatly appreciated and has been the catalyst we needed for finding a solution to make it more helpful. Thank you!! |
Yes, thanks @tonyhallett. I'll take care of this on #35467. |
Remove all references to the MinimumAgePolicyProvider that is not used when using IAuthorizationRequirementData.
The middleware constructs a policy adding the requirements from IAuthorizationRequirementData.GetRequirements
https://github.com/dotnet/aspnetcore/blob/82b0fc9f43ae2bd50fb95f427116efc2f6f094df/src/Security/Authorization/Policy/src/AuthorizationMiddleware.cs#L130
Internal previews