Custom auth policies with IARD overhaul#36866
Conversation
There was a problem hiding this comment.
Pull request overview
Refactors the IAuthorizationRequirementData documentation to emphasize Blazor scenarios, while adding a dedicated ASP.NET Core MVC companion article and exposing it in the MVC Authorization TOC.
Changes:
- Updates
security/authorization/iard.mdto reference a Blazor Web App sample and adds a Minimal API-based demonstration flow. - Adds a new MVC-specific article at
mvc/security/authorization/iard.mdwith JWT + curl testing steps. - Adds the new MVC article to
aspnetcore/toc.ymlunder MVC → Security and Identity → Authorization.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.
| File | Description |
|---|---|
| aspnetcore/toc.yml | Adds the MVC IARD article under the MVC Authorization section. |
| aspnetcore/security/authorization/iard.md | Repositions the IARD article toward Blazor-focused guidance and updates sample references and demo. |
| aspnetcore/mvc/security/authorization/iard.md | Introduces an MVC-specific companion article and links back to the main IARD page. |
...ity/authorization/custom-authorization-policies-with-iauthorizationrequirementdata-in-mvc.md
Show resolved
Hide resolved
...ity/authorization/custom-authorization-policies-with-iauthorizationrequirementdata-in-mvc.md
Outdated
Show resolved
Hide resolved
...e/security/authorization/custom-authorization-policies-with-iauthorizationrequirementdata.md
Outdated
Show resolved
Hide resolved
|
Tom ... Great idea. I made 5001 (HTTPS) the port, and I also put 5000 (HTTP) on both samples for those who would like to test without having to deal with certificate config. Sample updates were made here ... https://github.com/dotnet/AspNetCore.Docs.Samples/pull/293/changes We're good to go here for the primary updates. I've messaged Stephen to ask about the other open issue for this article. I can't follow the reasoning of the ask on that issue, so he'll need to figure out if that's a valid concern and exactly what changes we'd need to make. |
Fixes #36857
Tom ...
UPDATE: I changed the "iard" file name, and it's still complaining ... "with" and the API name. We can change it if you want.
Internal previews