-
Book Overview & Buying
-
Table Of Contents
Web Development with Blazor - Fourth Edition
By :
There are many built-in features for authentication. The easiest way to add authentication is to select an authentication option when creating a project. However, we can also add authentication later by scaffolding it if we want to.
When using the Blazor Web App Template, the server handles all the authentication. The client doesn't have to know anything about the authentication provider.
First, we need to set up Auth0.
Auth0 is a service that can help us with handling authentication for our users. There are many different services like this, but Auth0 is a good fit for us. We can connect one or more social connectors, which will allow our users to log in with Facebook, X, Twitch, or whatever we add to our site.
Even though all of this can be achieved by writing code ourselves, an integration like this is a great way to add authentication quickly, and it also provides a very powerful solution. Also, authentication is complex, so don&apos...