Closed mojtabakaviani closed 9 years ago
@mojtabakaviani You asking for something like [Authorize(Roles = "Administrators")]
this is already implemented, have a look https://github.com/aspnet/Security/blob/dev/src/Microsoft.AspNet.Authorization/AuthorizeAttribute.cs#L21
Groups are an ease of administration concept.
Group = collection of users.
You authorize on permissions.
Roles = collection of permissions.
Groups are not suitable for authorization.
Right, but if can add groups to Authorization mechanism so
[Authorize(Groups = "Administrators")]
It won't happen. Groups are not meant for, nor designed for authorization.
@blowdart can we just close this since you won't fixed?
Closed, by design.
Next version of Asp.Net Identity will be Implementing 'Group Based' Permissions Management for large numbers of users please add groups named parameters to AuthorizeAttribute that easy authorize groups every where.