'Keycloak returns https required

I can't get Keycloak (16.1.1) to work online with a online site. I specify that I am obliged to use this version.

I made it work locally: site locally with wampserver and Keycloak server locally. Everything is working. I wanted to test online.

I created a VM (Windows) in Azure and installed and launched Keycloak. In Azure, for this VM, I opened port 8080. I got to use this online Keycloak server from my local site (didn't believe it, but it works). For it to work, I still had to launch the Keycloak server (in the VM) with the following parameter:

standalone -b 0.0.0.0

I also had to put just "*" in the client redirect address defined in Keycloak for my app.

I put my site (Symfony) online on PlanetHoster (by the way, free and very responsive in troubleshooting). The site is in https while the Keycloak server is accessible in http. And there, failure: it says "https required". I also set Keycloak (require SSL none in Realm settings) to accept all requests.

I'm not very good in configuration(and also in English, sorry). Any ideas ? Thank you.

Emds



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source