add IdentityRevalidatingAuthenticationStateProvider

This commit is contained in:
sbwalker
2024-02-29 14:46:50 -05:00
parent 7b1bfeaca1
commit 4c92c582d7
3 changed files with 76 additions and 0 deletions

View File

@ -20,6 +20,8 @@ using Microsoft.Extensions.Logging;
using Oqtane.Components;
using Oqtane.UI;
using OqtaneSSR.Extensions;
using Microsoft.AspNetCore.Components.Authorization;
using Oqtane.Providers;
namespace Oqtane
{
@ -108,6 +110,7 @@ namespace Oqtane
services.ConfigureOqtaneIdentityOptions(Configuration);
services.AddCascadingAuthenticationState();
services.AddScoped<AuthenticationStateProvider, IdentityRevalidatingAuthenticationStateProvider>();
services.AddAuthorization();
services.AddAuthentication(options =>