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
AuthorizeAttribute(IEnumerable<Claim>) doesn't make sense #1740
Comments
From @sebastienros on May 5, 2014 21:35 We should move this issue to WebFX. I agree we need an overload with a single claim, but multiple ones do make sense in the sense they represent a logical OR. |
Moving this bug to MVC as it belongs to MVC. |
/cc @sebastienros You can use this constructor if you're defining a derived class what expects specific claims. There's no legacy/back-compat concern here since neither of our old |
Also, since AuthorizeAttribute is a filter, you can manually construct it and add it as a global filter. Seems like we should leave this around. |
Yeah ! |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
From @victorhurdugaci on April 29, 2014 20:42
The constructor overload for AuthorizeAttribute taking an IEnumerable as argument doesn't make sense because .NET expects all attribute arguments to be compile time constants.
cc @sebastienros
Copied from original issue: aspnet/Security#9
The text was updated successfully, but these errors were encountered: