use new Cascading Authentication State Services

This commit is contained in:
sbwalker
2024-02-01 15:47:03 -05:00
parent f0e2247f06
commit 1f65d47811
3 changed files with 7 additions and 5 deletions

View File

@ -10,6 +10,7 @@ namespace Microsoft.Extensions.DependencyInjection
public static IServiceCollection AddOqtaneAuthorization(this IServiceCollection services)
{
services.AddAuthorizationCore();
services.AddCascadingAuthenticationState();
services.AddScoped<IdentityAuthenticationStateProvider>();
services.AddScoped<AuthenticationStateProvider>(s => s.GetRequiredService<IdentityAuthenticationStateProvider>());