Skip to content

Commit d4a8025

Browse files
author
AmanpreetSingh-MSFT
authored
(AzureCXP) fixes MicrosoftDocs/azure-docs#86281
Updated [Authorize("role")] to [Authorize(Roles = "role")] in line 280 and 283
1 parent 71fd3ee commit d4a8025

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/active-directory/develop/scenario-protected-web-api-verification-scope-app-roles.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,10 +277,10 @@ public class TodoListController : ApiController
277277
}
278278
```
279279

280-
Instead, you can use the [Authorize("role")] attributes on the controller or an action (or a razor page).
280+
Instead, you can use the [Authorize(Roles = "role")] attributes on the controller or an action (or a razor page).
281281

282282
```CSharp
283-
[Authorize("role")]
283+
[Authorize(Roles = "role")]
284284
MyController : ApiController
285285
{
286286
// ...

0 commit comments

Comments
 (0)