mirror of
https://github.com/PacktPublishing/Web-Development-with-Blazor-Second-Edition.git
synced 2025-12-06 05:32:03 +01:00
19 lines
534 B
Plaintext
19 lines
534 B
Plaintext
@page "/authentication/{action}"
|
|
@inject NavigationManager Navigation
|
|
@inject IConfiguration Configuration
|
|
|
|
<RemoteAuthenticatorView Action="@Action">
|
|
<LogOut>
|
|
@{
|
|
var authority = Configuration["Auth0:Authority"] ?? string.Empty;
|
|
var clientId = Configuration["Auth0:ClientId"] ?? string.Empty;
|
|
|
|
Navigation.NavigateTo($"{authority}/v2/logout?client_id={clientId}");
|
|
}
|
|
</LogOut>
|
|
</RemoteAuthenticatorView>
|
|
|
|
@code {
|
|
[Parameter] public string Action { get; set; } = "";
|
|
}
|