Removing AuthService and fixing Dockerfile for PublicApi

This commit is contained in:
Steve Smith
2020-07-31 00:19:17 -04:00
parent e9a9dc06d7
commit f901db156a
13 changed files with 12 additions and 86 deletions

View File

@@ -1,14 +1,13 @@
@page "/logout"
@inject AuthService AuthService
@inject IJSRuntime JSRuntime
@inject HttpClient HttpClient
@inherits BlazorAdmin.Helpers.BlazorComponent
@code {
protected override async Task OnInitializedAsync()
{
await AuthService.Logout();
await HttpClient.PostAsync("Identity/Account/Logout", null);
await new Route(JSRuntime).RouteOutside("/Identity/Account/Login");
}