Skip to content

Commit

Permalink
Fixed embedded resources (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
PascalSenn authored Oct 24, 2022
1 parent 6154a64 commit 231f9ef
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 4 deletions.
2 changes: 2 additions & 0 deletions src/Backend/src/Authoring.Host/Authoring.Host.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
<AssemblyName>Confix.Authoring.Host</AssemblyName>
<RootNamespace>Confix.Authoring</RootNamespace>
<IsPackable>false</IsPackable>
<UserSecretsId>3f64ff45-7830-4fc6-b77d-eee879a369d9</UserSecretsId>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\Authoring.UI\Authoring.UI.csproj" />
<ProjectReference Include="..\Authoring\Authoring.csproj" />
<ProjectReference Include="..\Authoring.Store.Mongo\Authoring.Store.Mongo.csproj" />
<ProjectReference Include="..\CryptoProviders.AzureKeyVault\CryptoProviders.AzureKeyVault.csproj" />
Expand Down
3 changes: 3 additions & 0 deletions src/Backend/src/Authoring.Host/Program.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
using Confix.Authoring;
using Confix.Authoring.UI;
using Confix.CryptoProviders;

var builder = WebApplication.CreateBuilder(args);
builder.Configuration.AddJsonFile("appsettings.json");
builder.Configuration.AddUserSecrets("3f64ff45-7830-4fc6-b77d-eee879a369d9");

builder.Services
.AddConfixAuthoringServer()
Expand Down Expand Up @@ -31,5 +33,6 @@
}

app.UseAuthoringServer();
app.UseConfixUi();

app.Run();
4 changes: 2 additions & 2 deletions src/Backend/src/Authoring.Host/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
},
"Authoring": {
"OpenIdConnectOptions": {
"Authority": "https://id.a.portals.swisslife.ch",
"ClientId": "6bf6666ceb924c059d5dbda214bf0cb9",
"Authority": "",
"ClientId": "",
"ClientSecret": "",
"ResponseMode": "query",
"ResponseType": "code",
Expand Down
1 change: 1 addition & 0 deletions src/Backend/src/Authoring.UI/Authoring.UI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

<ItemGroup>
<FrameworkReference Include="Microsoft.AspNetCore.App" />
<PackageReference Include="Microsoft.Extensions.FileProviders.Embedded" />
</ItemGroup>

<ItemGroup>
Expand Down
3 changes: 2 additions & 1 deletion src/Backend/src/Common/Settings.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// ReSharper disable file MemberHidesStaticFromOuterClass

namespace Confix.Common;

public static class Settings
Expand Down Expand Up @@ -28,7 +29,7 @@ public static class Seed

public static class Authentication
{
public const string Section = $"{Confix.Section}:{nameof(Authentication)}";
public const string Section = $"{Authoring.Section}:{nameof(Authentication)}";

public static class OpenIdConnect
{
Expand Down
3 changes: 2 additions & 1 deletion src/Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
<PackageVersion Include="Microsoft.Extensions.Http" Version="6.0.0" />
<PackageVersion Include="Microsoft.Extensions.Options" Version="6.0.0" />
<PackageVersion Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="6.0.0" />
<PackageVersion Include="Microsoft.Extensions.FileProviders.Embedded" Version="6.0.10" />
<PackageVersion Include="MongoDB.Extensions.Context" Version="1.2.0" />
<PackageVersion Include="MongoDB.Extensions.Transactions" Version="1.2.0" />
<PackageVersion Include="StrawberryShake.CodeGeneration.CSharp.Analyzers" Version="12.15.0" />
Expand Down Expand Up @@ -56,4 +57,4 @@
</PackageVersion>
<PackageVersion Include="Snapshooter.Xunit" Version="0.7.1" />
</ItemGroup>
</Project>
</Project>

0 comments on commit 231f9ef

Please sign in to comment.