1 instantiation of SampleWithCustomMessageRequirement
CustomAuthorizationFailureResponse (1)
Startup.cs (1)
45
policy.AddRequirements(new
SampleWithCustomMessageRequirement
()));
3 references to SampleWithCustomMessageRequirement
CustomAuthorizationFailureResponse (3)
Authorization\Handlers\SampleWithCustomMessageRequirementHandler.cs (2)
10
public class SampleWithCustomMessageRequirementHandler : AuthorizationHandler<
SampleWithCustomMessageRequirement
>
12
protected override Task HandleRequirementAsync(AuthorizationHandlerContext context,
SampleWithCustomMessageRequirement
requirement)
Authorization\SampleAuthorizationMiddlewareResultHandler.cs (1)
51
else if (policyAuthorizationResult.AuthorizationFailure.FailedRequirements.Any(requirement => requirement is
SampleWithCustomMessageRequirement
))