This repository has been archived by the owner on Dec 14, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
AuthorizationContext conflicts with type in Microsoft.AspNet.Authorization #3979
Comments
Scratch that, we have to rename it aspnet/Security#670 (comment) |
I wonder if we should have an public abstract class MvcAuthorizationHandler<TRequirement> : AuthorizationHandler<TRequirement, Microsoft.AspNet.Mvc.Filters.AuthorizationContext> where TRequirement : IAuthorizationRequirement
{
} /cc @blowdart |
Why would mvc a handler all of its own? We worked hard not to link it to mvc.
It's not so much a clash as an actual design decision. It won't be that often you need the mvc specifics. Auth on route info or request properties is odd.
|
By default the resource that MVC passes to the AuthHandler its own AuthorizationContext (which is actually quite handy, see the issue linked). This would just be a shortcut for that. |
(So basically no. We should not start having handlers for each framework. The context rename I don't care about though)
|
@blowdart Sure we don't have to have a type, the user can just declare the MVC specific resource. No biggie. |
So let's rename |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
We really shouldn't be conflicting with our own system. Can we rename the AuthorizationContext in MVC to FilterAuthorizationContext or something?
/cc @rynowak @Eilon @danroth27
The text was updated successfully, but these errors were encountered: