Table of Contents

Class ReadOnlyAuthorisation

Namespace
The.Security
Assembly
Instagile.dll

Wraps another IAuthorisation and filters its permissions to remove all write access.

public sealed class ReadOnlyAuthorisation : IAuthorisation
Inheritance
ReadOnlyAuthorisation
Implements
Inherited Members

Constructors

ReadOnlyAuthorisation(IAuthorisation)

Wraps another IAuthorisation and filters its permissions to remove all write access.

public ReadOnlyAuthorisation(IAuthorisation inner)

Parameters

inner IAuthorisation

Methods

GetDefaultPermissions(CallbackEnvironment)

The rights assigned to all users regardless of their roles.

public PermissionSet GetDefaultPermissions(CallbackEnvironment environment)

Parameters

environment CallbackEnvironment

Returns

PermissionSet

GetIdentityRolesAsync(CallbackEnvironment, IEntityContext, Identity)

The roles assigned to a user.

public Task<IReadOnlySet<Role>> GetIdentityRolesAsync(CallbackEnvironment environment, IEntityContext scopedContext, Identity subject)

Parameters

environment CallbackEnvironment
scopedContext IEntityContext
subject Identity

Returns

Task<IReadOnlySet<Role>>

GetRolePermissions(CallbackEnvironment, Role)

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

public PermissionSet GetRolePermissions(CallbackEnvironment environment, Role role)

Parameters

environment CallbackEnvironment
role Role

Returns

PermissionSet