Working oidc

This commit is contained in:
Zoe Roux
2021-05-09 02:38:54 +02:00
parent 429af9b252
commit d7972704dd
45 changed files with 347 additions and 328 deletions
+1 -1
View File
@@ -63,7 +63,7 @@ namespace Kyoo.Postgresql
services.AddDbContext<DatabaseContext, PostgresContext>(x =>
{
x.UseNpgsql(_configuration.GetDatabaseConnection("postgres"));
if (_configuration.GetValue<bool>("logging:dotnet-ef"))
if (_environment.IsDevelopment())
x.EnableDetailedErrors().EnableSensitiveDataLogging();
});
// services.AddScoped<DatabaseContext>(_ => new PostgresContext(