Class SecurityGroupMembershipHandler
Handles checking if the logged in user is a member of the provided group.
Inheritance
SecurityGroupMembershipHandler
Implements
Inherited Members
Namespace: Microsoft.GNS.Roster.Web
Assembly: Microsoft.GNS.Roster.Web.dll
Syntax
public class SecurityGroupMembershipHandler : AuthorizationHandler<SecurityGroupMembershipRequirement>, IAuthorizationHandler
Constructors
View SourceSecurityGroupMembershipHandler(IUserAndGroupService, ILogger<SecurityGroupMembershipHandler>)
Declaration
public SecurityGroupMembershipHandler(IUserAndGroupService uagService, ILogger<SecurityGroupMembershipHandler> logger)
Parameters
| Type | Name | Description |
|---|---|---|
| IUserAndGroupService | uagService | |
| ILogger<SecurityGroupMembershipHandler> | logger |
Methods
View SourceHandleRequirementAsync(AuthorizationHandlerContext, SecurityGroupMembershipRequirement)
Checks the requirement.
Declaration
protected override Task HandleRequirementAsync(AuthorizationHandlerContext context, SecurityGroupMembershipRequirement requirement)
Parameters
| Type | Name | Description |
|---|---|---|
| AuthorizationHandlerContext | context | Hander context. |
| SecurityGroupMembershipRequirement | requirement | A SecurityGroupMembershipRequirement object. |
Returns
| Type | Description |
|---|---|
| Task | A task representing the work to handle checking the requirement. |