Class NoAuthorisation
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
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
environmentCallbackEnvironment
Returns
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 PermissionSet GetDefaultPermissions(CallbackEnvironment environment, EntityMetadataDictionary metadata)
Parameters
environmentCallbackEnvironmentmetadataEntityMetadataDictionary
Returns
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
environmentCallbackEnvironmentsubjectIdentity
Returns
GetIdentityRolesAsync(CallbackEnvironment, IEntityContext, Identity)
The roles assigned to a user.
public Task<IReadOnlySet<Role>> GetIdentityRolesAsync(CallbackEnvironment environment, IEntityContext scopedContext, Identity subject)
Parameters
environmentCallbackEnvironmentscopedContextIEntityContextsubjectIdentity
Returns
GetRoleCatalogue(CallbackEnvironment)
The roles supported by this policy in declaration order, or null if there isn't a fixed set.
public IReadOnlyList<ClaimsRole>? GetRoleCatalogue(CallbackEnvironment environment)
Parameters
environmentCallbackEnvironment
Returns
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 PermissionSet GetRolePermissions(CallbackEnvironment environment, EntityMetadataDictionary metadata, Role subject)
Parameters
environmentCallbackEnvironmentmetadataEntityMetadataDictionarysubjectRole
Returns
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
environmentCallbackEnvironmentsubjectRole