appsettings is now shared through the 'Secrets' project.

secrets are now expected inside a appsettings.secrets.json inside the 'Secrets' project.
This commit is contained in:
2021-05-19 19:41:03 +02:00
parent e7de64d04c
commit dd651629cb
17 changed files with 31 additions and 77 deletions

18
Secrets/Secrets.csproj Normal file
View File

@@ -0,0 +1,18 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard1.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<None Remove="appsettings.json" />
<Content Include="appsettings.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<None Remove="appsettings.secrets.json" />
<Content Include="appsettings.secrets.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>
</Project>

8
Secrets/appsettings.json Normal file
View File

@@ -0,0 +1,8 @@
{
"Authority": "https://accounts.test.farmmaps.eu/",
"Endpoint": "https://test.farmmaps.eu/",
"BasePath": "api/v1",
"DiscoveryEndpointUrl": "https://accounts.test.farmmaps.eu/.well-known/openid-configuration",
"RedirectUri": "http://example.nl/api",
"Scopes": ["api"]
}