-
Book Overview & Buying
-
Table Of Contents
Blazor WebAssembly by Example - Third Edition
By :
Who are you? What are you allowed to do? In security terms, those questions define identity and access, and they are at the heart of everything you will learn in this chapter.
In this chapter, you will learn the difference between authentication and authorization, how JSON Web Tokens (JWTs) carry claims, how Blazor represents the current user, how authentication state flows through an application, how to protect routes, and how to conditionally render user interface elements based on the current user's permissions. You will also learn how to test APIs by using Visual Studio's .http files.
Blazor WebAssembly provides built-in support for both authentication and authorization, but understanding the underlying mechanics remains essential. In this chapter, you will implement these features manually rather than relying on project templates. This approach gives you more control and will help you understand how authentication state, JWTs...