Skip to content

Commit

Permalink
Try to fix auth redirect protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
Foxocube committed Jan 1, 2025
1 parent 98fe47f commit 513276e
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions MediaFeeder/MediaFeeder/Program.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using System.Net;
using MediaFeeder;
using MediaFeeder.Components;
using MediaFeeder.Components.Account;
Expand All @@ -15,11 +16,10 @@
using OpenTelemetry.Trace;
using MediaFeeder.Services;
using Microsoft.AspNetCore.HttpOverrides;
using IPNetwork = Microsoft.AspNetCore.HttpOverrides.IPNetwork;

var builder = WebApplication.CreateBuilder(args);

IdentityModelEventSource.ShowPII = true;

// Add services to the container.
builder.Services.AddRazorComponents()
.AddInteractiveServerComponents()
Expand Down Expand Up @@ -120,13 +120,8 @@
builder.Services.AddAntDesign();
builder.Services.AddControllers();

IdentityModelEventSource.ShowPII = true;


var app = builder.Build();

IdentityModelEventSource.ShowPII = true;

// Configure the HTTP request pipeline.
if (app.Environment.IsDevelopment())
{
Expand All @@ -145,6 +140,7 @@
app.UseForwardedHeaders(new ForwardedHeadersOptions
{
ForwardedHeaders = ForwardedHeaders.All,
KnownNetworks = { new IPNetwork(new IPAddress(0), 0) }
});

app.UseHealthChecks("/healthz");
Expand All @@ -168,6 +164,4 @@
app.MapGrpcService<MediaToadService>();
app.MapGrpcHealthChecksService();

IdentityModelEventSource.ShowPII = true;

app.Run();

0 comments on commit 513276e

Please sign in to comment.