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 | |
RequireClientPrivilegeAttribute (string privilege) | |
Initializes a new instance of the RequireClientPrivilegeAttribute class. More... | |
void | OnAuthorization (AuthorizationFilterContext context) |
Properties | |
EnSeverity | Severity [get, set] |
Gets or sets the severity of action More... | |
bool | IgnoreOnUserPresent = EnSeverity.Trivial [get, set] |
Gets or sets a value indicating whether this rule will be ignored if there is an authenticated user 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 27 of file RequireClientPrivilegeAttribute.cs.
KlusterKite.Web.Authorization.Attributes.RequireClientPrivilegeAttribute.RequireClientPrivilegeAttribute | ( | string | privilege | ) |
Initializes a new instance of the RequireClientPrivilegeAttribute class.
privilege | The required privilege |
Definition at line 40 of file RequireClientPrivilegeAttribute.cs.
void KlusterKite.Web.Authorization.Attributes.RequireClientPrivilegeAttribute.OnAuthorization | ( | AuthorizationFilterContext | context | ) |
Definition at line 64 of file RequireClientPrivilegeAttribute.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 61 of file RequireClientPrivilegeAttribute.cs.
|
getset |
Gets or sets a value indicating whether this rule will be ignored if there is an authenticated user
Definition at line 53 of file RequireClientPrivilegeAttribute.cs.
|
getset |
Gets or sets the severity of action
Definition at line 48 of file RequireClientPrivilegeAttribute.cs.