You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
823 B
21 lines
823 B
@page "/authentication/{action}"
|
|
@using Microsoft.AspNetCore.Components.WebAssembly.Authentication
|
|
@using Volo.Abp.AspNetCore.Components.Web.Security
|
|
@using Volo.Abp.AspNetCore.Components.WebAssembly
|
|
<RemoteAuthenticatorView Action="@Action" OnLogInSucceeded="OnLogInSucceeded" OnLogOutSucceeded="OnLogOutSucceeded" />
|
|
@inject WebAssemblyCachedApplicationConfigurationClient WebAssemblyCachedApplicationConfigurationClient
|
|
|
|
@code{
|
|
[Parameter] public string Action { get; set; }
|
|
|
|
|
|
private async Task OnLogInSucceeded(RemoteAuthenticationState state)
|
|
{
|
|
await WebAssemblyCachedApplicationConfigurationClient.InitializeAsync();
|
|
}
|
|
|
|
private async Task OnLogOutSucceeded(RemoteAuthenticationState state)
|
|
{
|
|
await WebAssemblyCachedApplicationConfigurationClient.InitializeAsync();
|
|
}
|
|
}
|
|
|