Enable authentication
This commit is contained in:
@@ -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>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user