Show / Hide Table of Contents

Class SecurityGroupMembershipHandler

Handles checking if the logged in user is a member of the provided group.

Inheritance
System.Object
SecurityGroupMembershipHandler
Namespace: Microsoft.GNS.Roster.Web
Assembly: Microsoft.GNS.Roster.Web.dll
Syntax
public class SecurityGroupMembershipHandler : AuthorizationHandler<SecurityGroupMembershipRequirement>

Constructors

View Source

SecurityGroupMembershipHandler(IUserAndGroupService, ILogger)

Declaration
public SecurityGroupMembershipHandler(IUserAndGroupService uagService, ILogger logger)
Parameters
Type Name Description
IUserAndGroupService uagService
ILogger logger

Methods

View Source

HandleRequirementAsync(AuthorizationHandlerContext, SecurityGroupMembershipRequirement)

Checks the requirement.

Declaration
protected override async 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.

  • View Source
In This Article
Back to top Generated by DocFX