Okta Authentication using http (not https) in a webforms .net web application

I have a web app that runs only in a intranet and uses http and not https.
When performing okta authentication all works fine, but after the authentication redirect we get always errors and fail to connect to the redirect URL because it always try to return to that page using https.
Is there a way do performe an authentication over http on okta?
Is there a demo app?

You can try out this sample app GitHub - oktadev/okta-aspnet-webforms-example: An example of how to integrate Okta for authentication in an ASP.NET Webforms application.

However, I believe the change to use HTTPS is due to the SameSite cookie changes back in 2020.

You can refer to this post as well.