Revise IAuthorizationRequirementData article details#37347
Open
guardrex wants to merge 4 commits into
Open
Conversation
Updated the article to clarify that the IAuthorizationRequirementData interface is supported only in Minimal APIs. Adjusted the sample app description to specify the endpoint and the age requirement.
Clarified that IAuthorizationRequirementData isn't supported in Razor components.
Clarified that IAuthorizationRequirementData is not supported for certain authorization attributes, including Razor components and SignalR hub classes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #37340
Updates the Security-node article to clarify that the
IAuthorizationRequirementDatainterface isn't supported in Razor components, hubs, andAuthorizeFilters. I also adjusted the sample app description, specifying it uses a Minimal API endpoint.Side Note: I see new API coming for .NET 11+, and we'll take care of that later. For now, I'm just trying to get the phrasing of these remarks correct.
I originally created the BWA to only demonstrate use with a Minimal API endpoint ...
... using the same
AuthorizationHandlerthat I found in the original MVC sample.Is the BWA implementation a sensible demo?
Also, can you take a look at the original MVC sample, which now accompanies the new MVC authz node article?
In the MVC sample ...
MinimumAgeAuthorizeAttributeMinimumAgeAuthorizationHandlerProgramGreetingsControllerSimilar question, given that it's demoed with an
AuthorizationHandler, which is what I assume makes it work with a controller. I need guidance from you on how to phrase the support remark in the MVC article, unless you just want to stick with what we're placing in the main article.Internal previews