Enable authentication

This commit is contained in:
2025-04-21 00:35:36 +02:00
parent 4fd5f71724
commit 1080d3b4ad
10 changed files with 75 additions and 18 deletions

View File

@@ -5,6 +5,7 @@ using GameIdeas.BlazorApp.Pages.Games.Gateways;
using GameIdeas.BlazorApp.Pages.User.Gateways;
using GameIdeas.BlazorApp.Services;
using GameIdeas.Resources;
using Microsoft.AspNetCore.Components.Authorization;
using Microsoft.AspNetCore.Components.Web;
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
@@ -30,7 +31,7 @@ services.AddHttpClient(
services.AddBlazoredLocalStorage();
services.AddAuthorizationCore();
services.AddScoped<JwtAuthenticationStateProvider>();
services.AddScoped<AuthenticationStateProvider, JwtAuthenticationStateProvider>();
services.AddScoped<IHttpClientService, HttpClientService>();