Skip to main content
Table of Contents

Class PermissionAuthorizationException

Namespace
Stratara.Abstractions.Authorization
Assembly
Stratara.Abstractions.dll

Thrown by the authorizing mediator/dispatcher decorators when the caller does not hold a permission required by RequirePermissionAttribute on the dispatched request type. Derives from AuthorizationException so existing role-era handlers (403 mapping) catch permission denials without change.

public sealed class PermissionAuthorizationException : AuthorizationException, ISerializable
Inheritance
PermissionAuthorizationException
Implements
Inherited Members
Extension Methods

Constructors

PermissionAuthorizationException(string)

Initialise a new PermissionAuthorizationException for the named permission.

public PermissionAuthorizationException(string permission)

Parameters

permission string

The permission the caller was missing.

Properties

RequiredPermission

The permission the caller did not hold.

public string RequiredPermission { get; }

Property Value

string