Table of Contents

Class ClaimsAuthorisation<T>

Namespace
The.Security
Assembly
Instagile.dll
public abstract class ClaimsAuthorisation<T> : ClaimsAuthorisation, IAuthorisation where T : struct, Enum

Type Parameters

T
Inheritance
ClaimsAuthorisation<T>
Implements
Inherited Members

Methods

BuildDefaultPermissions(PermissionSetBuilder)

Base permissions granted by the application to all identities, regardless of role.

public virtual void BuildDefaultPermissions(PermissionSetBuilder builder)

Parameters

builder PermissionSetBuilder

DefineRoles()

The application's role table, in the order roles are presented to users. A member mapping to ADMIN_ROLE customises the administrator role's permissions; without one, a default full-access administrator role is supplied.

public abstract IEnumerable<ClaimsRole<T>> DefineRoles()

Returns

IEnumerable<ClaimsRole<T>>

GetDefaultPermissions(CallbackEnvironment)

The rights assigned to all users regardless of their roles.

[Obsolete("Use GetDefaultPermissions(CallbackEnvironment, EntityMetadataDictionary, Role)")]
public override sealed PermissionSet GetDefaultPermissions(CallbackEnvironment environment)

Parameters

environment CallbackEnvironment

Returns

PermissionSet

GetDefaultPermissions(CallbackEnvironment, EntityMetadataDictionary)

The rights assigned to all users regardless of their roles. Called by the framework in preference to GetDefaultPermissions(CallbackEnvironment), which it falls back to.

public override sealed PermissionSet GetDefaultPermissions(CallbackEnvironment environment, EntityMetadataDictionary metadata)

Parameters

environment CallbackEnvironment
metadata EntityMetadataDictionary

Returns

PermissionSet

GetRoleCatalogue(CallbackEnvironment, EntityMetadataDictionary)

The roles supported by this policy in declaration order, or null if there isn't a fixed set. Called by the framework in preference to GetRoleCatalogue(CallbackEnvironment), which it falls back to.

public override sealed IReadOnlyList<ClaimsRole> GetRoleCatalogue(CallbackEnvironment environment, EntityMetadataDictionary metadata)

Parameters

environment CallbackEnvironment
metadata EntityMetadataDictionary

Returns

IReadOnlyList<ClaimsRole>

GetRolePermissions(CallbackEnvironment, EntityMetadataDictionary, Role)

The rights assigned to a role (which may be in turn be assigned to users or groups). Called by the framework in preference to GetRolePermissions(CallbackEnvironment, Role), which it falls back to.

public override sealed PermissionSet GetRolePermissions(CallbackEnvironment environment, EntityMetadataDictionary metadata, Role role)

Parameters

environment CallbackEnvironment
metadata EntityMetadataDictionary
role Role

Returns

PermissionSet

GetRolePermissions(CallbackEnvironment, Role)

The rights assigned to a role (which may be in turn be assigned to users or groups).

[Obsolete("Use GetRolePermissions(CallbackEnvironment, EntityMetadataDictionary, Role)")]
public override sealed PermissionSet GetRolePermissions(CallbackEnvironment environment, Role role)

Parameters

environment CallbackEnvironment
role Role

Returns

PermissionSet