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. Can be null to indicate that the action code isn’t required; the entity code is enough.

Properties

Code

Summary

Gets the action part of the permission code. If null it indicates that the action code isn’t required; the entity code is enough.

Value

The action part of the permission code.