KlusterKite  0.0.0
A framework to create scalable and redundant services based on awesome Akka.Net project.
KlusterKite.Web.Authorization.Attributes.RequireUserPrivilegeAttribute Class Reference

Checks session for action authorization More...

Inheritance diagram for KlusterKite.Web.Authorization.Attributes.RequireUserPrivilegeAttribute:

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...
 

Detailed Description

Checks session for action authorization

The authentication should be required in separate attribute.

Definition at line 26 of file RequireUserPrivilegeAttribute.cs.

Constructor & Destructor Documentation

◆ RequireUserPrivilegeAttribute()

KlusterKite.Web.Authorization.Attributes.RequireUserPrivilegeAttribute.RequireUserPrivilegeAttribute ( string  privilege)

Initializes a new instance of the RequireUserPrivilegeAttribute class.

Parameters
privilegeThe required privilege

Definition at line 39 of file RequireUserPrivilegeAttribute.cs.

Member Function Documentation

◆ OnAuthorization()

void KlusterKite.Web.Authorization.Attributes.RequireUserPrivilegeAttribute.OnAuthorization ( AuthorizationFilterContext  context)

Definition at line 63 of file RequireUserPrivilegeAttribute.cs.

Property Documentation

◆ CombinePrivilegeWithActionName

bool KlusterKite.Web.Authorization.Attributes.RequireUserPrivilegeAttribute.CombinePrivilegeWithActionName
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.

◆ IgnoreOnClientOwnBehalf

bool KlusterKite.Web.Authorization.Attributes.RequireUserPrivilegeAttribute.IgnoreOnClientOwnBehalf = EnSeverity.Trivial
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.

◆ Severity

EnSeverity KlusterKite.Web.Authorization.Attributes.RequireUserPrivilegeAttribute.Severity
getset

Gets or sets the severity of action

Definition at line 47 of file RequireUserPrivilegeAttribute.cs.


The documentation for this class was generated from the following file: