3 references to Fail
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 (1)
AuthorizationFailure.cs (1)
41
/// Return a failure due to <see cref="AuthorizationHandlerContext.
Fail
(AuthorizationFailureReason)"/> being called.
Microsoft.AspNetCore.Authorization.Test (1)
DefaultAuthorizationServiceTests.cs (1)
165
context.
Fail
(new AuthorizationFailureReason(this, _reason));