AuthActionAttribute

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

Summary

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

Remarks

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

Constructors

#ctor(code)

Summary

Initializes a new instance of the AuthActionAttribute class.

Parameters
Name Type Description
code System.String The action part of the permission code for activity-based authorization checks.

Properties

Code

Summary

Gets the action part of the permission code.

Value

The action part of the permission code.