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

Checks session for action authorization More...

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

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

Detailed Description

Checks session for action authorization

The authentication should be required in separate attribute.

Definition at line 27 of file RequireClientPrivilegeAttribute.cs.

Constructor & Destructor Documentation

◆ RequireClientPrivilegeAttribute()

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

Initializes a new instance of the RequireClientPrivilegeAttribute class.

Parameters
privilegeThe required privilege

Definition at line 40 of file RequireClientPrivilegeAttribute.cs.

Member Function Documentation

◆ OnAuthorization()

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

Definition at line 64 of file RequireClientPrivilegeAttribute.cs.

Property Documentation

◆ CombinePrivilegeWithActionName

bool KlusterKite.Web.Authorization.Attributes.RequireClientPrivilegeAttribute.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 61 of file RequireClientPrivilegeAttribute.cs.

◆ IgnoreOnUserPresent

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

◆ Severity

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

Gets or sets the severity of action

Definition at line 48 of file RequireClientPrivilegeAttribute.cs.


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