❔ OAuth2 behind a reverse proxy won't work without UseAuthentication.
I setup a default individual auth project using .NET 7 Razor pages, I then set it up to use Google sign in, testing this app as it is in https mode worked fine, I then set the redirect header middleware, ran it in http mode with the redirect header middleware set, it would fail when redirecting back to the app after successfully signing in with
I have the project in a GH repo https://github.com/jasonalexander-ja/GoogleAuthProxy
I followed the following guides for setting up the auth and redirect headers
https://learn.microsoft.com/en-us/aspnet/core/security/authentication/social/google-logins?view=aspnetcore-7.0
https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/proxy-load-balancer?view=aspnetcore-7.0
redirect_uri_mismatch, it does however work fine when UseAuthentication is set (this isn't set in the default auth project), I'm not too familiar with this middleware, does anyone know how might this be affecting it in such a way where it causes the auth to work as expected when running behind a reverse proxy? And why it wouldn't be needed when running direct.I have the project in a GH repo https://github.com/jasonalexander-ja/GoogleAuthProxy
I followed the following guides for setting up the auth and redirect headers
https://learn.microsoft.com/en-us/aspnet/core/security/authentication/social/google-logins?view=aspnetcore-7.0
https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/proxy-load-balancer?view=aspnetcore-7.0