Interface IRoleProvider
The interface to validate and list roles assigned to a user.
Namespace: Unity.Cloud.Identity
Assembly: Unity.Cloud.Identity.dll
Syntax
public interface IRoleProvider
Methods
ListPermissionsAsync()
Lists permissions assigned to a user.
Declaration
Task<IEnumerable<Permission>> ListPermissionsAsync()
Returns
Type | Description |
---|---|
Task<IEnumerable<Permission>> | A task that once completed returns the list of permissions assigned to a user. |
ListRolesAsync()
Lists roles assigned to a user.
Declaration
Task<IEnumerable<Role>> ListRolesAsync()
Returns
Type | Description |
---|---|
Task<IEnumerable<Role>> | A task that once completed returns the list of roles assigned to a user. |