Moved several appsettings defaults to user-secrets
This commit is contained in:
@@ -2,14 +2,7 @@
|
||||
@using Microsoft.AspNetCore.Http
|
||||
@using Microsoft.AspNetCore.Authentication
|
||||
@inject IHttpContextAccessor _httpContextAccessor
|
||||
<AuthorizeView>
|
||||
<Authorized>
|
||||
|
||||
</Authorized>
|
||||
<NotAuthorized>
|
||||
<h1>You must be logged in to view this page!</h1>
|
||||
</NotAuthorized>
|
||||
</AuthorizeView>
|
||||
@attribute [Authorize]
|
||||
|
||||
@code {
|
||||
protected async override Task OnInitializedAsync()
|
||||
|
||||
@@ -12,16 +12,15 @@
|
||||
<span class="oi oi-home" aria-hidden="true"></span> Home
|
||||
</NavLink>
|
||||
</li>
|
||||
<AuthorizeView>
|
||||
<Authorized>
|
||||
<li class="nav-item px-3">
|
||||
<NavLink class="nav-link" href="counter">
|
||||
<span class="oi oi-plus" aria-hidden="true"></span> Counter
|
||||
</NavLink>
|
||||
</li>
|
||||
<li class="nav-item px-3">
|
||||
<NavLink class="nav-link" href="fetchdata">
|
||||
<span class="oi oi-list-rich" aria-hidden="true"></span> Fetch data
|
||||
<NavLink class="nav-link" href="createserver">
|
||||
<span class="oi oi-list-rich" aria-hidden="true"></span> Create Server
|
||||
</NavLink>
|
||||
</li>
|
||||
</Authorized>
|
||||
</AuthorizeView>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
},
|
||||
"AllowedHosts": "*",
|
||||
"oidc" : {
|
||||
"authority" : "https://dummy.dummy",
|
||||
"authority" : "oidc_url",
|
||||
"client_id": "id",
|
||||
"client_secret": "secret"
|
||||
}
|
||||
|
||||
@@ -3,6 +3,6 @@ namespace WebAPI.Data.Models
|
||||
public class User : BaseEntity
|
||||
{
|
||||
public int? PterodactylUserId { get; set; }
|
||||
public int? ExternalAuthIdentifier { get; set; }
|
||||
public string ExternalAuthIdentifier { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -32,7 +32,7 @@ namespace WebAPI.Data
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -18,6 +18,9 @@ namespace WebAPI
|
||||
|
||||
public static IHostBuilder CreateHostBuilder(string[] args) =>
|
||||
Host.CreateDefaultBuilder(args)
|
||||
.ConfigureWebHostDefaults(webBuilder => { webBuilder.UseStartup<Startup>(); });
|
||||
.ConfigureWebHostDefaults(webBuilder =>
|
||||
{
|
||||
webBuilder.UseStartup<Startup>();
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -22,7 +22,7 @@
|
||||
"dotnetRunMessages": "true",
|
||||
"launchBrowser": true,
|
||||
"launchUrl": "swagger",
|
||||
"applicationUrl": "https://localhost:5001;http://localhost:5000",
|
||||
"applicationUrl": "https://localhost:44319;http://localhost:36546",
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
}
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net5.0</TargetFramework>
|
||||
<UserSecretsId>70ad8aec-0a1b-4ec9-bd5c-3d11ff1fcd93</UserSecretsId>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -12,5 +12,5 @@
|
||||
"AllowedHosts": "*",
|
||||
"PterodactylAPIKey": "REPLACE_ME",
|
||||
"PterodactylPanelURL": "https://panel.orfl.xyz",
|
||||
"OIDCUserInfoEndpoint": "https://authentik.mattstop.com/application/o/userinfo"
|
||||
"OIDCUserInfoEndpoint": "https://authentik.mattstop.com/application/o/userinfo/"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user