Jason Alexander
Jason Alexander
CC#
Created by Jason Alexander on 11/12/2023 in #help
Build looking for project as a package name.
Turned out to be something up with the repos configuration, it got patched thankfully https://github.com/AzureAD/microsoft-identity-web/issues/2579
3 replies
CC#
Created by Jason Alexander on 11/12/2023 in #help
Build looking for project as a package name.
Really strange, when I make a new project in that solution it encounters the same error.
3 replies
CC#
Created by Jason Alexander on 11/2/2023 in #help
❔ OAuth2 behind a reverse proxy won't work without UseAuthentication.
Really strange, I used the default generated project for .NET 7 and it too didn't add the authentication middleware, and it too worked directly
23 replies
CC#
Created by Jason Alexander on 11/2/2023 in #help
❔ OAuth2 behind a reverse proxy won't work without UseAuthentication.
Yeah it seems to be the case accross browsers and devices, and I only just realised I accidently created this thing with .NET 8 by a mistake, I'll try the same in NET 7, looks like I may have found a weird quirk of .NET 8
23 replies
CC#
Created by Jason Alexander on 11/2/2023 in #help
❔ OAuth2 behind a reverse proxy won't work without UseAuthentication.
It seems if you don't at least have the forwarding header middleware setup for XForwardedProto then it will use the wrong protocol for the callback URL, further in the actual config for setting up the authentication options I can only find configuration relating to path and not the further URL or protocol; but I have at least got a working example of an oauth2 app working behind a proxy, the fact that I needed the forward headers middleware does make sense to me, but what doesn't is why it also needs the authentication middleware when running it directly does not
23 replies
CC#
Created by Jason Alexander on 11/2/2023 in #help
❔ OAuth2 behind a reverse proxy won't work without UseAuthentication.
I switched them, I was experimenting to try and see what it takes to get a .NET app with OAuth2 working behind a reverse proxy
23 replies