Understanding authentication in Blazor WebAssembly
With the word authentication, probably the first thing that comes to your mind is the login process with a username and password. I think that’s mostly right, but the story is a bit deeper than that.
An overall general definition for authentication is validating whether the user or the system that is trying to access certain protected resources has a valid identity or not. Think of authentication as an employee trying to access a company office. The employee passes the work ID over the scanner beside the main entrance. The system then checks whether it is a valid ID and, if it is, the door opens and allows the employee in. The employee gets their work ID in the onboarding process after getting hired, so you can map the entrance validation to the login process and the issuing of the ID to the registration process in the software world.
Authentication is not only for users (actual people who open and use the app). It can...