i am working on a blazor server side project(for and to learn for future projects at work). I am trying to implement a authentication in the application like in the asp.net core apps => with httpcontext.SignInAsync(CookieDefaults.AuthenticationScheme,principal); but i literally can't find anything about that => Is Cookie or JWT Auth even possible or better to say logical on a blazor server side application?
my project structure : Database/API <= Blazor App
I am thinking about Jwt Auth with my API and store the jwt token with LocalStorageService => but how do i tell my blazor app that i am authorized when i have a valid jwt token?
can i implement a custom authorizefilter? and should the filter check with the api if the token is still valid?
Kinda confused right now, blazor is really amazing and i think its the real future framework, but the authentication is kinda hard to understand for me
fyi: I would prefer to not use Identity if possible I have no Code atm, because i am still working myself into blazor and trying stuff etc.