Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 552e9ff1b4 | |||
| 8002920a07 | |||
| 629dbe7cfe | |||
| 285cb29867 | |||
| 25acd67485 | |||
| 596ab396a4 |
@@ -18,13 +18,13 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="LiteCharms.Features" Version="1.130.0" />
|
<PackageReference Include="LiteCharms.Features" Version="1.131.0" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<!-- UI -->
|
<!-- UI -->
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="ANM.Blazored.Toast" Version="0.1.1" />
|
<PackageReference Include="ANM.Blazored.Toast" Version="0.1.1" />
|
||||||
<PackageReference Include="LiteCharms.Features.MidrandBooks" Version="1.130.0" />
|
<PackageReference Include="LiteCharms.Features.MidrandBooks" Version="1.131.0" />
|
||||||
|
|
||||||
<!-- Global Usings -->
|
<!-- Global Usings -->
|
||||||
<Using Include="Blazored.Toast.Services" />
|
<Using Include="Blazored.Toast.Services" />
|
||||||
|
|||||||
@@ -31,12 +31,12 @@ builder.Services.AddShopServices(includeLocalStorage: true);
|
|||||||
builder.Services.AddHashServices(builder.Configuration);
|
builder.Services.AddHashServices(builder.Configuration);
|
||||||
builder.Services.AddPayfastServices(builder.Configuration);
|
builder.Services.AddPayfastServices(builder.Configuration);
|
||||||
|
|
||||||
builder.Services.AddSecurityApiSdk(builder.Configuration);
|
|
||||||
builder.Services.AddLiteCharmsWebSecurity(builder.Configuration);
|
|
||||||
|
|
||||||
builder.Services.AddDataProtectionDatabase(builder.Configuration);
|
builder.Services.AddDataProtectionDatabase(builder.Configuration);
|
||||||
builder.Services.AddMidrandShopDatabase(builder.Configuration);
|
builder.Services.AddMidrandShopDatabase(builder.Configuration);
|
||||||
|
|
||||||
|
builder.Services.AddSecurityApiSdk(builder.Configuration);
|
||||||
|
builder.Services.AddLiteCharmsWebSecurity(builder.Configuration);
|
||||||
|
|
||||||
builder.Services.AddMidrandShopPostgresHealthCheck();
|
builder.Services.AddMidrandShopPostgresHealthCheck();
|
||||||
builder.Services.AddMidrandShopQuartzHealthCheck();
|
builder.Services.AddMidrandShopQuartzHealthCheck();
|
||||||
builder.Services.AddHealthChecksSupport(builder.Configuration);
|
builder.Services.AddHealthChecksSupport(builder.Configuration);
|
||||||
@@ -49,6 +49,8 @@ builder.Services.Configure<ForwardedHeadersOptions>(options =>
|
|||||||
|
|
||||||
var app = builder.Build();
|
var app = builder.Build();
|
||||||
|
|
||||||
|
app.UseForwardedHeaders();
|
||||||
|
|
||||||
using var security = app.Services.CreateScope();
|
using var security = app.Services.CreateScope();
|
||||||
{
|
{
|
||||||
var dataProtectionContext = security.ServiceProvider.GetRequiredService<DataProtectionDbContext>();
|
var dataProtectionContext = security.ServiceProvider.GetRequiredService<DataProtectionDbContext>();
|
||||||
@@ -56,7 +58,6 @@ using var security = app.Services.CreateScope();
|
|||||||
await dataProtectionContext.Database.MigrateAsync();
|
await dataProtectionContext.Database.MigrateAsync();
|
||||||
}
|
}
|
||||||
|
|
||||||
app.UseForwardedHeaders();
|
|
||||||
app.AddSecurityEndpoints();
|
app.AddSecurityEndpoints();
|
||||||
|
|
||||||
var schedulerFactory = app.Services.GetRequiredService<ISchedulerFactory>();
|
var schedulerFactory = app.Services.GetRequiredService<ISchedulerFactory>();
|
||||||
|
|||||||
Reference in New Issue
Block a user