Table of Contents

Class NoAuthorisation

Namespace
The.Security
Assembly
Instagile.dll
public sealed class NoAuthorisation : IAuthorisation
Inheritance
NoAuthorisation
Implements
Inherited Members

Properties

IsAuthoritative

If true, roles can be determined without async access to a remote server.

public bool IsAuthoritative { get; }

Property Value

bool

Remarks

May depend on ambient state - don't cache the result.

Methods

GetDefaultPermissions(CallbackEnvironment)

The rights assigned to all users regardless of their roles.

public PermissionSet GetDefaultPermissions(CallbackEnvironment environment)

Parameters

environment CallbackEnvironment

Returns

PermissionSet

GetIdentityRoles(CallbackEnvironment, Identity)

The roles assigned to a user. Available synchronously only if IsAuthoritative returns true.

public IReadOnlySet<Role> GetIdentityRoles(CallbackEnvironment environment, Identity subject)

Parameters

environment CallbackEnvironment
subject Identity

Returns

IReadOnlySet<Role>

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 subject)

Parameters

environment CallbackEnvironment
subject Role

Returns

PermissionSet