Update secure-data.md (#8487)

Fixes #8474
@gaazkam @smariussorin @C-BERBER please review
pull/8500/head
Rick Anderson 2018-09-11 15:21:34 -07:00 committed by GitHub
parent 29e363873e
commit a09f423d5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -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: