Skip to content

Commit

Permalink
Shuffle some stuff around in the hopes of it fixing OAuth
Browse files Browse the repository at this point in the history
  • Loading branch information
Simyon264 committed May 18, 2024
1 parent fd9c31e commit 99155e1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion ReplayBrowser/Controllers/AccountController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public IActionResult Login()
{
return Challenge(new AuthenticationProperties
{
RedirectUri = "/"
RedirectUri = _configuration["RedirectUri"]
});
}

Expand Down
12 changes: 6 additions & 6 deletions ReplayBrowser/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,12 @@ public void ConfigureServices(IServiceCollection services)

public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
app.Use((context, next) =>
{
context.Request.Scheme = "https";
return next();
});

if (!env.IsDevelopment())
{
app.UseExceptionHandler("/Error", createScopeForErrors: true);
Expand Down Expand Up @@ -237,12 +243,6 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
pattern: "api/{controller=Home}/{action=Index}/{id?}");
});

app.Use((context, next) =>
{
context.Request.Scheme = "https";
return next();
});

app.UseHttpsRedirection();
app.UseForwardedHeaders();
app.UseRouting();
Expand Down

0 comments on commit 99155e1

Please sign in to comment.