Removing AuthService and fixing Dockerfile for PublicApi
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
@inject ILogger<Create> Logger
|
||||
@inject AuthService Auth
|
||||
@inject IJSRuntime JSRuntime
|
||||
@inject ICatalogItemService CatalogItemService
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
@inject ILogger<Delete> Logger
|
||||
@inject AuthService Auth
|
||||
@inject IJSRuntime JSRuntime
|
||||
@inject ICatalogItemService CatalogItemService
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
@inject ILogger<Details> Logger
|
||||
@inject AuthService Auth
|
||||
@inject IJSRuntime JSRuntime
|
||||
@inject ICatalogItemService CatalogItemService
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
@inject ILogger<Edit> Logger
|
||||
@inject AuthService Auth
|
||||
@inject IJSRuntime JSRuntime
|
||||
@inject ICatalogItemService CatalogItemService
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user