KlusterKite
0.0.0
A framework to create scalable and redundant services based on awesome Akka.Net project.
|
Checks session for action authorization More...
Public Member Functions | |
RequireUserPrivilegeAttribute (string privilege) | |
Initializes a new instance of the RequireUserPrivilegeAttribute class. More... | |
void | OnAuthorization (AuthorizationFilterContext context) |
Properties | |
EnSeverity | Severity [get, set] |
Gets or sets the severity of action More... | |
bool | IgnoreOnClientOwnBehalf = EnSeverity.Trivial [get, set] |
Gets or sets a value indicating whether this rule will be ignored if client authenticated on it's own behalf More... | |
bool | CombinePrivilegeWithActionName [get, set] |
Gets or sets a value indicating whether the resulting privilege test will be run against combined string of specified privilege and action method name. More... | |
Checks session for action authorization
The authentication should be required in separate attribute.
Definition at line 26 of file RequireUserPrivilegeAttribute.cs.
KlusterKite.Web.Authorization.Attributes.RequireUserPrivilegeAttribute.RequireUserPrivilegeAttribute | ( | string | privilege | ) |
Initializes a new instance of the RequireUserPrivilegeAttribute class.
privilege | The required privilege |
Definition at line 39 of file RequireUserPrivilegeAttribute.cs.
void KlusterKite.Web.Authorization.Attributes.RequireUserPrivilegeAttribute.OnAuthorization | ( | AuthorizationFilterContext | context | ) |
Definition at line 63 of file RequireUserPrivilegeAttribute.cs.
|
getset |
Gets or sets a value indicating whether the resulting privilege test will be run against combined string of specified privilege and action method name.
For example specified privilege is "KlusterKite.Object" and controller action called is "Get", then user will require privilege "KlusterKite.Object.Get" in order to call this method
Definition at line 60 of file RequireUserPrivilegeAttribute.cs.
|
getset |
Gets or sets a value indicating whether this rule will be ignored if client authenticated on it's own behalf
Definition at line 52 of file RequireUserPrivilegeAttribute.cs.
|
getset |
Gets or sets the severity of action
Definition at line 47 of file RequireUserPrivilegeAttribute.cs.