Skip to content
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

This is not valid for Core 3.0 "MVC passes an instance of AuthorizationFilterContext in the Resource property" #16155

Closed
yahorsi opened this issue Dec 12, 2019 — with docs.microsoft.com · 3 comments
Assignees
Labels
doc-bug Security-PU Must be reviewed by product unit security. Source - Docs.ms Docs Customer feedback via GitHub Issue

Comments

Copy link

yahorsi commented Dec 12, 2019

Hi, since .NET Core 3.0 this is not valid anymore:

For example, MVC passes an instance of AuthorizationFilterContext in the Resource property. This property provides access to HttpContext, RouteData, and everything else provided by MVC and Razor Pages.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

@dotnet-bot dotnet-bot added ⌚ Not Triaged Source - Docs.ms Docs Customer feedback via GitHub Issue labels Dec 12, 2019
@Rick-Anderson Rick-Anderson added doc-bug Security-PU Must be reviewed by product unit security. and removed ⌚ Not Triaged labels Dec 12, 2019
@damienbod
Copy link
Contributor

I did a blog about how to do this now in 3.0 onwards. This might help maybe

https://damienbod.com/2019/12/02/using-http-request-routes-request-body-and-query-string-parameters-for-authorization-in-asp-net-core/

Greetings Damien

@serpent5
Copy link
Contributor

This looks like #12564 and #15263. There’s some discussion in #15218.

@Rick-Anderson
Copy link
Contributor

Moved to #16191

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc-bug Security-PU Must be reviewed by product unit security. Source - Docs.ms Docs Customer feedback via GitHub Issue
Projects
None yet
Development

No branches or pull requests

6 participants