How to add OpenIdConnect via IdentityServer4 to ASP.NET Core ServerSide Blazor web app?

Your code suffers from a couple of maladies… The main issue is that your code provides no authentication challenge request mechanism that enables redirection to an authenticating agent such as IdentityServer. This is only possible with HttpContext, which is not available in SignalR (Blazor Server App). To solve this issue we’ll add a couple of … Read more