1
0
mirror of https://github.com/ncblakely/GiantsTools synced 2024-12-05 02:53:08 +01:00

Compare commits

..

No commits in common. "00d1d374c5d2fc96ac4aea75ecc42301505c6c54" and "374805a39ac4771a8b16004a61a459a67c5533c9" have entirely different histories.

View File

@ -47,6 +47,8 @@ namespace Giants.Web
services.AddApplicationInsightsTelemetry();
IdentityModelEventSource.ShowPII = true;
services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme)
.AddMicrosoftIdentityWebApi(options =>
{
@ -92,17 +94,14 @@ namespace Giants.Web
IMapper mapper = Services.Mapper.GetMapper();
services.AddSingleton(mapper);
services.AddHealthChecks();
builder.Logging.AddEventSourceLogger();
builder.Logging.AddApplicationInsights();
}
private static void ConfigureApplication(WebApplication app, IWebHostEnvironment env)
{
if (env.IsDevelopment())
{
IdentityModelEventSource.ShowPII = true;
Microsoft.IdentityModel.Logging.IdentityModelEventSource.ShowPII = true;
app.UseDeveloperExceptionPage();
app.UseOpenApi();
}
@ -114,12 +113,11 @@ namespace Giants.Web
app.UseAuthentication();
app.UseAuthorization();
app.UseEndpoints(endpoints =>
{
endpoints.MapControllers();
});
app.MapHealthChecks("/health");
}
}
}