Blazor Server Middleware Authentication Auth0

Job ID: 33115046

Budget: $30 – $250 CAD

See: https://stackoverflow.com/questions/71330990/websocket-failure-for-blazor-server

The issue I'm experiencing is when I run the application I can immediately connect to the web page and navigate without any issue. When I navigate away to a different URL and back I can no longer navigate to any razor page. I do not know why. After the websocket closes for the first visitor, no one can open a new one. Nor could I refresh the page or use mobile or different browser... Same experience everywhere. _layout load and cannot render any razor page in the nav menu.

All pages with [Authorize] no longer work

This is the middleware currently:

app.UseResponseCompression();

// Configure the HTTP request pipeline.
if (!env.IsDevelopment())
{
app.UseExceptionHandler("/Error");
// The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
app.UseHsts();
}

app.UseHttpsRedirection();
app.UseStaticFiles();

app.UseRouting();

//app.UseForwardedHeaders(new ForwardedHeadersOptions
//{
// ForwardedHeaders = ForwardedHeaders.XForwardedFor | ForwardedHeaders.XForwardedProto
//});

//app.UseCookiePolicy();
app.UseAuthentication();
app.UseAuthorization();

app.UseEndpoints(endpoints =>
{
//endpoints.MapRazorPages();
endpoints.MapBlazorHub();
endpoints.MapFallbackToPage("/_Host");
});


There is not hosting software to consider. This is straight IP:PORT based so the issue is 100% the application.

Because this touches source code, you must be prepared to work via screen share with me.
Related categories: .NET C# Programming OAuth Blazor