Browse Source

temporary anonymous access to development environment

pull/765/head
cKey 3 years ago
parent
commit
6c2e5a4d49
  1. 5
      aspnet-core/services/LY.MicroService.WebhooksManagement.HttpApi.Host/WebhooksManagementHttpApiHostModule.Configure.cs

5
aspnet-core/services/LY.MicroService.WebhooksManagement.HttpApi.Host/WebhooksManagementHttpApiHostModule.Configure.cs

@ -314,6 +314,11 @@ public partial class WebhooksManagementHttpApiHostModule
options.Audience = configuration["AuthServer:ApiName"];
});
if (isDevelopment)
{
services.AddAlwaysAllowAuthorization();
}
if (!isDevelopment)
{
var redis = ConnectionMultiplexer.Connect(configuration["Redis:Configuration"]);

Loading…
Cancel
Save