So, I wanted to learn a bit about the whole serverless and static web app topic going on right now.
My plan is to create a C# client-side blazor application which is hosted as a static website, with C# Azure Functions doing the backend work. So far so good. Dealing with the code for all my functionalities seems to be just as straightforward as it could be.
Authentication on the other side is a whole different thing to tackle. I'm a bit lost when it comes to how to actually properly secure my application, and only allow people in after doing a login.
However, after doing a bit of reading as to how to do security, I have some questions still unanswered.
How do I do authentication and security within my application? I was reading up on the following article: https://docs.microsoft.com/de-de/archive/blogs/stuartleeks/azure-functions-and-app-service-authentication which explains how to do security within the scope of authentication providers like Facebook, Google etc. However, coming from an Asp.Net Identity background, how can I actually use my custom identity setup? E.g, I want to provide a way to register and login in my client side blazor application, and I was hoping I could find something Identity-like here, which takes care of user management etc.
In case I properly get the authentication part done, how should my client application behave to reflect the logged in state? Given there is no server behind, I can't just have something like a MVC controller handing out either the "logon" view or the "logged in" view, depending on the auth state of the client.
It would be great if someone could give me a bit of guidance here.