Adding
This commit is contained in:
+7
-3
@@ -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");
|
||||
});
|
||||
|
||||
+2
-1
@@ -5,7 +5,8 @@
|
||||
"TenantId": "00000000-0000-0000-0000-000000000000",
|
||||
"ClientId": "00000000-0000-0000-0000-000000000000",
|
||||
"CallbackPath": "/signin-oidc",
|
||||
"ClientSecret": "VALUE-IN-KEYVAULT"
|
||||
"ClientSecret": "VALUE-IN-KEYVAULT",
|
||||
"AuthenticationUrl": "https://login.microsoftonline.com/landmarkcu.onmicrosoft.com/oauth2/v2.0/token"
|
||||
},
|
||||
"Primary": {
|
||||
"AppName": "Reserve Management System",
|
||||
|
||||
Reference in New Issue
Block a user