Skip to content

Commit e3176c2

Browse files
authored
Merge pull request #115314 from MarileeTurscak-MSFT/patch-425
Updated claim name
2 parents cc7be07 + cad5395 commit e3176c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ private void ValidateAppRole(string appRole)
146146
}
147147
```
148148

149-
This time, the code snippet is for ASP.NET. For ASP.NET Core, just replace `ClaimsPrincipal.Current` with `HttpContext.User`, and replace the `"roles"` claim name with `"http://schemas.microsoft.com/identity/claims/roles"`. Also see the code snippet earlier in this article.
149+
This time, the code snippet is for ASP.NET. For ASP.NET Core, just replace `ClaimsPrincipal.Current` with `HttpContext.User`, and replace the `"roles"` claim name with `"http://schemas.microsoft.com/ws/2008/06/identity/claims/role"`. Also see the code snippet earlier in this article.
150150

151151
### Accepting app-only tokens if the web API should be called only by daemon apps
152152

0 commit comments

Comments
 (0)