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.
Author
Released
1/26/2018- 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
Duration
Views
Related Courses
-
Learning ASP.NET Core MVC
with Jess Chadwick3h 12m Intermediate
-
Introduction
-
Set up the sample projects4m 48s
-
1. Get to Know .NET Core
-
Introducing .NET Core5m 26s
-
.NET Core goals8m 59s
-
.NET Core support cycles1m 36s
-
Migration considerations2m 42s
-
-
2. ASP.NET Core 1.0
-
Project structure and Bower3m 19s
-
.NET Core project files2m 25s
-
Bundling and minification4m 58s
-
Web host configuration and SSL12m 51s
-
Application startup4m 42s
-
Logging1m 45s
-
Controllers and actions1m 54s
-
Tag helpers12m 33s
-
View components4m 28s
-
3. ASP.NET Core 1.1
-
Azure App Service logging1m 14s
-
View compilation1m 50s
-
Middleware and URL rewriting8m 22s
-
Middleware as MVC filters2m 54s
-
WebSockets support2m 11s
-
4. ASP.NET Core 2.0
-
Introducing ASP.NET Core 2.08m 42s
-
Containerization with Docker11m 24s
-
WebHostBuilder updates4m 8s
-
Configuration and logging4m 26s
-
HTTP.sys3m 6s
-
Rewriting middleware updates1m 23s
-
Razor Pages5m 12s
-
-
Conclusion
-
Thank you26s
-
- 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.
CancelTake 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.
Share this video
Embed this video
Video: Redis and Azure Storage key protection repositories