Recreated solution with web app template. Improved theme. Switched to ShadcnBlazor library
This commit is contained in:
16
Moonlight.Frontend/Startup/Startup.Auth.cs
Normal file
16
Moonlight.Frontend/Startup/Startup.Auth.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using Microsoft.AspNetCore.Components.Authorization;
|
||||
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Moonlight.Frontend.Services;
|
||||
|
||||
namespace Moonlight.Frontend.Startup;
|
||||
|
||||
public partial class Startup
|
||||
{
|
||||
public void AddAuth(WebAssemblyHostBuilder builder)
|
||||
{
|
||||
builder.Services.AddScoped<AuthenticationStateProvider, RemoteAuthProvider>();
|
||||
builder.Services.AddAuthorizationCore();
|
||||
builder.Services.AddCascadingAuthenticationState();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user