Chapter 8: Authentication and Authorization

In this chapter, we will learn how to add authentication and authorization to our blog, because we don't want just anyone to be able to create or edit blog posts.

Covering authentication and authorization fully would itself take a whole book, so we will keep things simple here. The goal of this chapter is to get the built-in authentication and authorization functionalities working, building on the already existing functionality that's built in to ASP.NET. That means that there is not a lot of Blazor magic involved here; there are a lot of resources that already exist that we can take advantage of.

Almost every system today has some way to log in, whether it is an admin interface (like ours) or a member ...

Get Web Development with Blazor now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.