ASP.NET Core 1.1 enables use of Redis and Azure Storage data protection key repositories.
- [Instructor] In the final new fear in one point one we're going to talk about is the addition of Redis or Azure Storage data protection key repos, and this allows keys to be shared across several instances of a web app. Prior to having these in one point one, you pretty much had to use a network share and a file repository. So some common scenarios, sharing authentication cookies, or probably more importantly, cross-site request forgery, or CSRF, protection across load balanced servers.
The packages required if you're going to use Redis is Microsoft.AspNetCore.DataProtection.Redis and Azure Storage. Same prefix, but .AzureStorage. Since I'm not running on a load balanced or have the sample hooked up to Azure Storage or Redis, we're just going to talk about it here. The full details of how to use this and implement both ends of the equation are at the link on your screen, but it's very simple to add in once you have the appropriate plumbing in place.
For Azure Storage, in the configured services note these both have to be added before the services.AddNBC line. You would just add in services.AddDataProtection() .PersistKeysToAzureBlobStorage with the URI. To use Redis, you just create a new connection multiplexer connecting to the appropriate URI, and then you'd say services.AddDataProtection().PersistKeysToRedis.
So that concludes our new features in one point one. Stay tuned, and we'll cover all the new features in ASPI Net Core 2.0.
- Running and debugging ASP.NET Core applications
- Pros and cons of migrating existing applications to ASP.NET Core.
- Built-in dependency injection
- Environment awareness and app configuration
- Web host configuration and SSL
- View components invoked as tag helpers
- Configuration and logging
- Using Razor Pages
Skill Level Intermediate
Set up the sample projects4m 49s
1. Get to Know .NET Core
2. ASP.NET Core 1.0
3. ASP.NET Core 1.1
4. ASP.NET Core 2.0
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.