Logout redirect.
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
@using Microsoft.AspNetCore.Components.WebAssembly.Authentication
|
@using Microsoft.AspNetCore.Components.WebAssembly.Authentication
|
||||||
@inject NavigationManager navigationManager
|
@inject NavigationManager navigationManager
|
||||||
|
|
||||||
<RemoteAuthenticatorView Action="@Action" LogInFailed="LoginFailed">
|
<RemoteAuthenticatorView Action="@Action" LogInFailed="LoginFailed" LogOutSucceeded="LogoutSuccess()">
|
||||||
</RemoteAuthenticatorView>
|
</RemoteAuthenticatorView>
|
||||||
@code {
|
@code {
|
||||||
[Parameter] public string? Action { get; set; }
|
[Parameter] public string? Action { get; set; }
|
||||||
@@ -19,5 +19,9 @@
|
|||||||
return builder => navigationManager.NavigateTo("/error");
|
return builder => navigationManager.NavigateTo("/error");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
RenderFragment LogoutSuccess()
|
||||||
|
{
|
||||||
|
return builder => navigationManager.NavigateTo("/");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user