Skip to content

Commit

Permalink
Update secure-data.md (#8487)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rick-Anderson committed Sep 11, 2018
1 parent 29e3638 commit a09f423
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions aspnetcore/security/authorization/secure-data.md
Expand Up @@ -264,6 +264,10 @@ Update the details page model:

[!code-csharp[](secure-data/samples/final2.1/Pages/Contacts/Details.cshtml.cs?name=snippet)]

## Add a user to a role

Roles are stored in the Identity cookie. Changes made to user roles are not persisted to the cookie until the cookie is regenerated or the user signs out and signs in. Applications that add users to a role should call `SignInManager.RefreshSignInAsync(user)` to update the cookie.

## Test the completed app

If the app has contacts:
Expand Down

0 comments on commit a09f423

Please sign in to comment.