2 references to AuthorizationFailureReason
CustomAuthorizationFailureResponse (1)
Authorization\Handlers\SampleWithFailureReasonRequirementHandler.cs (1)
14
context.Fail(new
AuthorizationFailureReason
(this, "This is a way to provide more failure reasons."));
Microsoft.AspNetCore.Authorization.Test (1)
DefaultAuthorizationServiceTests.cs (1)
165
context.Fail(new
AuthorizationFailureReason
(this, _reason));