1 write to FailedRequirements
Microsoft.AspNetCore.Authorization (1)
AuthorizationFailure.cs (1)
57=> new AuthorizationFailure { FailedRequirements = failed };
5 references to FailedRequirements
CustomAuthorizationFailureResponse (2)
Authorization\SampleAuthorizationMiddlewareResultHandler.cs (2)
43if (policyAuthorizationResult.AuthorizationFailure.FailedRequirements.Any(requirement => requirement is SampleRequirement)) 51else if (policyAuthorizationResult.AuthorizationFailure.FailedRequirements.Any(requirement => requirement is SampleWithCustomMessageRequirement))
Microsoft.AspNetCore.Authorization (1)
LoggingExtensions.cs (1)
21: "These requirements were not met:" + Environment.NewLine + string.Join(Environment.NewLine, failure.FailedRequirements);
Microsoft.AspNetCore.Authorization.Test (2)
DefaultAuthorizationServiceTests.cs (1)
218Assert.IsType<ClaimsAuthorizationRequirement>(allowed.Failure.FailedRequirements.First());
PolicyEvaluatorTests.cs (1)
156Assert.Contains(result.AuthorizationFailure.FailedRequirements, requirement => requirement is DummyRequirement);