Table of Contents

Class RoleOptions

Namespace
Excalibur.A3.Authorization
Assembly
Excalibur.A3.Abstractions.dll

Configuration options for role management.

public sealed class RoleOptions
Inheritance
RoleOptions
Inherited Members

Properties

EnforceUniqueNames

Gets or sets a value indicating whether role names must be unique within a tenant.

public bool EnforceUniqueNames { get; set; }

Property Value

bool

Defaults to true.

MaxHierarchyDepth

Gets or sets the maximum allowed depth for role hierarchy inheritance.

[Range(1, 10)]
public int MaxHierarchyDepth { get; set; }

Property Value

int

Defaults to 5.

PermissionCacheDurationSeconds

Gets or sets the duration (in seconds) for which resolved role permissions are cached by the role-aware authorization evaluator.

[Range(0, 86400)]
public int PermissionCacheDurationSeconds { get; set; }

Property Value

int

Defaults to 300 (5 minutes).