OAuth Twitch Bug?
I am using the AspNet.Security.OAuth.Twitch nuget package and for some reason I am getting an error:
The URL that it sends you is in HTTP and not HTTPS. Is there a way to change that? I am running this in HTTP mode but I have a cloudflare tunnel making it HTTP. But I even tried doing a reverse proxy with nginx and it had the same issue.
I have Discord OAuth working with the sister package and it works just fine




6 Replies
Reading the OAuthEvents for .AddTwitch() it says the RedirectUri is exactly the same as the one I added on twitch

what is your nginx config like, and did you add the http url in the twitch settings
Yes the url is added to the twitch side
I was able to confirm this this works through the proxy so the proxy isn't the problem.


You have to set this environment variable. Doing it the other didn't work for me:
Environment.SetEnvironmentVariable("ASPNETCORE_FORWARDEDHEADERS_ENABLED", "true");