We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm working in .Net Framework without Identity.
I'm calling "HttpContext.Current" from my "IAuthorizationRequirement" class, which works, but is a bad practice/pattern to follow.
The request would be to include in HttpContext "(AuthorizationContext context)" passed down through from the originally Web API context.
The text was updated successfully, but these errors were encountered:
As a follow-up - I ended up used "_.UserContext" to pass "HttpContext".
Sorry, something went wrong.
That would be the suggested way to solve it. This solution is transport independent, so it won't ever have a direct reference to HttpContext.
HttpContext
No branches or pull requests
I'm working in .Net Framework without Identity.
I'm calling "HttpContext.Current" from my "IAuthorizationRequirement" class, which works, but is a bad practice/pattern to follow.
The request would be to include in HttpContext "(AuthorizationContext context)" passed down through from the originally Web API context.
The text was updated successfully, but these errors were encountered: