AuthActionAttribute

Namespace: ASPSecurityKit.ServiceStack
Assembly: ASPSecurityKit.ServiceStack.dll

Summary

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

Remarks

By default, http method is used as the action part of the permission code. You can override this behavior on action-by-action basis using this attribute.

Constructors

#ctor(code,applyTo)

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.
applyTo ServiceStack.ApplyTo Determines to which http method call it applies.

Properties

PermissionCode

Summary

Gets the action part of the permission code.

Value

The action part of the permission code.

IsComplete

Summary

Gets or sets a value indicating whether PermissionCode should be treated as complete permission code and as such, entity type code is not needed.

Value

true if PermissionCode should be treated as a complete permission code ; otherwise, false.