1 write to FailureReasons
Microsoft.AspNetCore.Authorization (1)
AuthorizationFailure.cs (1)
48
FailureReasons
= reasons
5 references to FailureReasons
CustomAuthorizationFailureResponse (2)
Authorization\SampleAuthorizationMiddlewareResultHandler.cs (2)
34
if (policyAuthorizationResult.AuthorizationFailure.
FailureReasons
.Any())
36
await httpContext.Response.WriteAsync(policyAuthorizationResult.AuthorizationFailure.
FailureReasons
.First().Message);
Microsoft.AspNetCore.Authorization.Test (3)
DefaultAuthorizationServiceTests.cs (3)
190
Assert.Equal(2, allowed.Failure.
FailureReasons
.Count());
191
var first = allowed.Failure.
FailureReasons
.First();
194
var second = allowed.Failure.
FailureReasons
.Last();