-
Notifications
You must be signed in to change notification settings - Fork 24.8k
Needs more details. #33353
Copy link
Copy link
Open
Labels
Source - Docs.msDocs Customer feedback via GitHub IssueDocs Customer feedback via GitHub Issueaspnet-core/svcre-Aditya@adityamandaleeka must review@adityamandaleeka must reviewsecurity/subsvc
Metadata
Metadata
Assignees
Labels
Source - Docs.msDocs Customer feedback via GitHub IssueDocs Customer feedback via GitHub Issueaspnet-core/svcre-Aditya@adityamandaleeka must review@adityamandaleeka must reviewsecurity/subsvc
Type
Fields
Give feedbackNo fields configured for issues without a type.
Description
The example in this article creates confusion because of mixing custom policy provider and
IAuthrizationRequirementData.There's no explanation of how framework actually behaves.
It's not needed to inherit from
Authorizeattribute.If attribute implements
IAuthrizationRequirementData, either active policy will be extended with the requirementsIAuthrizationRequirementDatayields, or new policy will be created dynamically.See this example: https://github.com/voroninp/AuthorizationRequirementDataTest
Page URL
https://learn.microsoft.com/en-us/aspnet/core/security/authorization/iard?view=aspnetcore-8.0
Content source URL
https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/security/authorization/iard.md
Document ID
f6195feb-aade-5e5a-dc6d-6a6b9bb6038e
Article author
@Rick-Anderson