5 changed files with 36 additions and 32 deletions
@ -1,7 +1,21 @@ |
|||
@page "/authentication/{action}" |
|||
@using Microsoft.AspNetCore.Components.WebAssembly.Authentication |
|||
<RemoteAuthenticatorView Action="@Action" /> |
|||
@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(); |
|||
} |
|||
} |
|||
|
|||
Loading…
Reference in new issue