Class RemoteAuthorisation
Implementation of IAuthorisation that obtains an identity's list of roles via an RPC without needing to see entities such as IUserClaim.
public sealed class RemoteAuthorisation : IAuthorisation
- Inheritance
-
RemoteAuthorisation
- Implements
- Inherited Members
Constructors
RemoteAuthorisation(IAuthorisation)
Implementation of IAuthorisation that obtains an identity's list of roles via an RPC without needing to see entities such as IUserClaim.
public RemoteAuthorisation(IAuthorisation inner)
Parameters
innerIAuthorisationConcrete IAuthorisation that can translate a role into a PermissionSet.
Methods
GetDefaultPermissions(CallbackEnvironment)
The rights assigned to all users regardless of their roles.
public PermissionSet GetDefaultPermissions(CallbackEnvironment environment)
Parameters
environmentCallbackEnvironment
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
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
environmentCallbackEnvironmentroleRole