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)
38options.AddPolicy(SamplePolicyNames.CustomPolicy, policy => 41options.AddPolicy(SamplePolicyNames.FailureReasonPolicy, policy => 44options.AddPolicy(SamplePolicyNames.CustomPolicyWithCustomForbiddenMessage, policy =>