add IdentityRevalidatingAuthenticationStateProvider
This commit is contained in:
@ -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 =>
|
||||
|
Reference in New Issue
Block a user