This commit is contained in:
Zeeshaun
2026-04-07 09:55:58 -05:00
parent 63a69556e1
commit 27e500ac20
8 changed files with 40 additions and 12 deletions
@@ -5,7 +5,6 @@ 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;
@@ -33,8 +32,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.AddAzureAdGroupPolicyServices(Configuration.GetSection("AzureAd"),
Configuration.GetSection("Security"));
services.AddAzureAdGroupPolicyServicesWithToken(Configuration.GetSection("AzureAd"),
Configuration.GetSection("Security"));
var appConfiguration = new AppConfiguration();
Configuration.GetSection("Primary").Bind(appConfiguration);
@@ -93,10 +92,6 @@ namespace ReserveManagementSystemUI
app.UseHttpsRedirection();
app.UseStaticFiles();
app.UseForwardedHeaders(new ForwardedHeadersOptions
{
ForwardedHeaders = ForwardedHeaders.XForwardedProto
});
app.UseRouting();
app.UseAuthentication();
@@ -105,6 +100,7 @@ namespace ReserveManagementSystemUI
app.UseEndpoints(endpoints =>
{
endpoints.MapControllers();
endpoints.MapRazorPages();
endpoints.MapBlazorHub();
endpoints.MapFallbackToPage("/_Host");
});