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,5 +1,4 @@
@inject ILogger<Create> Logger
@inject AuthService Auth
@inject IJSRuntime JSRuntime
@inject ICatalogItemService CatalogItemService

View File

@@ -1,5 +1,4 @@
@inject ILogger<Delete> Logger
@inject AuthService Auth
@inject IJSRuntime JSRuntime
@inject ICatalogItemService CatalogItemService

View File

@@ -1,5 +1,4 @@
@inject ILogger<Details> Logger
@inject AuthService Auth
@inject IJSRuntime JSRuntime
@inject ICatalogItemService CatalogItemService

View File

@@ -1,5 +1,4 @@
@inject ILogger<Edit> Logger
@inject AuthService Auth
@inject IJSRuntime JSRuntime
@inject ICatalogItemService CatalogItemService

View File

@@ -1,6 +1,5 @@
@page "/admin"
@attribute [Authorize(Roles = BlazorShared.Authorization.Constants.Roles.ADMINISTRATORS)]
@inject AuthService Auth
@inherits BlazorAdmin.Helpers.BlazorComponent
@namespace BlazorAdmin.Pages.CatalogItemPage

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");
}