6 references to SamplePolicyNames
CustomAuthorizationFailureResponse (6)
Controllers\SampleController.cs (3)
15
[Authorize(Policy =
SamplePolicyNames
.CustomPolicyWithCustomForbiddenMessage)]
22
[Authorize(Policy =
SamplePolicyNames
.CustomPolicy)]
29
[Authorize(Policy =
SamplePolicyNames
.FailureReasonPolicy)]
Startup.cs (3)
38
options.AddPolicy(
SamplePolicyNames
.CustomPolicy, policy =>
41
options.AddPolicy(
SamplePolicyNames
.FailureReasonPolicy, policy =>
44
options.AddPolicy(
SamplePolicyNames
.CustomPolicyWithCustomForbiddenMessage, policy =>