Update cookie-sharing.md (#2790)

* Update cookie-sharing.md

Added a tip to suggest to add a dependency for the code to start working. It was not obvious and made me search through source code

* removed tip
pull/2803/head
Sergey Lymar 2017-02-18 13:28:26 +11:00 committed by Rick Anderson
parent c99732266e
commit 631f5c0229
1 changed files with 2 additions and 0 deletions

View File

@ -43,6 +43,8 @@ app.UseCookieAuthentication(new CookieAuthenticationOptions
});
```
The `DataProtectionProvider` requires the `Microsoft.AspNetCore.DataProtection.Extensions` NuGet package.
When used in this manner, the DirectoryInfo should point to a key storage location specifically set aside for authentication cookies. The cookie authentication middleware will use the explicitly provided implementation of the DataProtectionProvider, which is now isolated from the data protection system used by other parts of the application. The application name is ignored (intentionally so, since you're trying to get multiple applications to share payloads).
>[!WARNING]