This commit is contained in:
Zeeshaun
2026-03-25 15:19:29 +00:00
parent 1f0d78cb6b
commit c67cbefcf4
3 changed files with 11 additions and 5 deletions
@@ -5,6 +5,7 @@ using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.Identity.Web;
using Microsoft.Identity.Web.UI;
using Microsoft.AspNetCore.HttpOverrides;
using Blazored.Toast;
using LCU.Library.Internal.Configuration;
using LCU.Library.Internal.LcuHttpClient;
@@ -32,8 +33,8 @@ namespace ReserveManagementSystemUI
// For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=398940
public void ConfigureServices(IServiceCollection services)
{
services.AddAzureAdGroupPolicyServicesWithToken(Configuration.GetSection("AzureAd"),
Configuration.GetSection("Security"));
services.AddAzureAdGroupPolicyServices(Configuration.GetSection("AzureAd"),
Configuration.GetSection("Security"));
var appConfiguration = new AppConfiguration();
Configuration.GetSection("Primary").Bind(appConfiguration);
@@ -92,6 +93,10 @@ namespace ReserveManagementSystemUI
app.UseHttpsRedirection();
app.UseStaticFiles();
app.UseForwardedHeaders(new ForwardedHeadersOptions
{
ForwardedHeaders = ForwardedHeaders.XForwardedProto
});
app.UseRouting();
app.UseAuthentication();
@@ -100,7 +105,6 @@ namespace ReserveManagementSystemUI
app.UseEndpoints(endpoints =>
{
endpoints.MapControllers();
endpoints.MapRazorPages();
endpoints.MapBlazorHub();
endpoints.MapFallbackToPage("/_Host");
});