Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Web Development with Blazor
  • Table Of Contents Toc
Web Development with Blazor

Web Development with Blazor - Third Edition

By : Jimmy Engström
3.9 (16)
close
close
Web Development with Blazor

Web Development with Blazor

3.9 (16)
By: Jimmy Engström

Overview of this book

Web Development with Blazor is your essential guide to building and deploying interactive web applications in C# – without relying on JavaScript. Written by an early Blazor adopter and updated for .NET 8, this book takes you through the end-to-end development of an example app, helping you to overcome common challenges along the way. You’ll pick up both Blazor Server and Blazor WebAssembly and discover cutting-edge tools to enrich your development experience. Responding to evolving needs, this edition introduces flexible hosting models, allowing you to mix and match hosting approaches to create flexible and scalable Blazor applications. It also presents the new Blazor templates, which provide ready-made solutions to simplify and expedite development. You'll learn about the game-changing server-side rendering (SSR), a hybrid hosting model blending the strengths of Blazor Server and Blazor WebAssembly, as well as streaming rendering, a new technique that boosts the performance and user experience of Blazor apps. By the end of this book, you'll have the confidence you need to create and deploy production-ready Blazor applications using best practices, along with a big-picture view of the Blazor landscape.
Table of Contents (22 chapters)
close
close
20
Other Books You May Enjoy
21
Index

Adding roles

Blazor Server and Blazor WebAssembly handle roles a bit differently; it’s nothing major, but we need to do different implementations. In this chapter, we will take a look at implementing it for our current project (per component) and return to roles in Chapter 16, Going Deeper into WebAssembly.

Configuring Auth0 by adding roles

Let’s start by adding roles in Auth0:

  1. Log in to Auth0, navigate to User Management | Roles, and click Create Role.
  2. Enter the name Administrator and the description Can do anything and press Create.
  3. Go to the Users tab, click Add Users, search for your user, and then click Assign. You can also manage roles from the Users menu on the left.
  4. By default, roles won’t be sent to the client, so we need to enrich the data to include roles.

We do that by adding an action.

  1. Go to Actions, and then Flows.

Flows are a way to execute code in a particular flow.

We want Auth0...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Web Development with Blazor
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist download Download options font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon