Fix misspelling. (#26329)
parent
35c094d7d9
commit
dbc1d3abf6
|
@ -56,7 +56,7 @@ If you have a controller that's protected by the `[Authorize]` attribute, but wa
|
|||
|
||||
[!code-csharp[](~/security/authorization/claims/samples/6.x/WebAll/Controllers/VacationController.cs?name=snippet&highlight=14)]
|
||||
|
||||
Because policies can ***not*** be applied at the Razor Page handler level, we recommend using a controller when polices must be applied at the page handler level. The rest of the app that doesn't require policies at the Razor Page handler level can use Razor Pages.
|
||||
Because policies can ***not*** be applied at the Razor Page handler level, we recommend using a controller when policies must be applied at the page handler level. The rest of the app that doesn't require policies at the Razor Page handler level can use Razor Pages.
|
||||
|
||||
Most claims come with a value. You can specify a list of allowed values when creating the policy. The following example would only succeed for employees whose employee number was 1, 2, 3, 4 or 5.
|
||||
|
||||
|
|
Loading…
Reference in New Issue