AuthEntityAttribute

Namespace: ASPSecurityKit.Net
Assembly: ASPSecurityKit.Net.dll

Summary

Attribute to indicate the entity type part of the permission code for activity-based authorization checks.

Remarks

By default, controller name (from the route data) is used as the entity type. You can override this behavior on controller-by-controller basis using this attribute. To override the complete code (including the action part), you can use AuthPermissionAttribute instead.

Constructors

#ctor(code)

Summary

Initializes a new instance of the AuthEntityAttribute class.

Parameters
Name Type Description
code System.String The entity type part of the permission code.

Properties

Code

Summary

Gets the entity type part of the permission code.

Value

The entity type part of the permission code.