I am using Keycloak (version 1.0.4.Final)
in JBOSS AS 7.1.1
server. The server is on Amazon AWS.
I am able to start the jboss server with keycloak. i can see the keycloak default screen while hitting the URL - ServerIP:8080/auth
But when i am clicking on the Administration Console
link to go to the login screen. I am getting a page saying - HTTPS required
The server is on AWS, changing to "ssl-required" : "none",
in General Adapter Config has not helped.
How to resolve this issue?
Edit: I was not getting this issue in keycloak-1.2.0.Beta1 version.
To access the admin console, open http://localhost:8080/auth/admin/ in a browser. You will be redirected to the Keycloak login pages, where you can log in with the admin username and password you created in the previous section while installing Keycloak.
Keycloak does not require SSL. This should really only be used in development when you are playing around with things and don't want to bother configuring SSL on your server.
In the "master" realm, over login tab. Change 'Require SSL' property to none.
I was running the key cloak inside a docker container, The keycloak command line tool was avaialble inside the keycloak container.
docker exec -it {contaierID} bash cd keycloak/bin ./kcadm.sh config credentials --server http://localhost:8080/auth --realm master --user admin ./kcadm.sh update realms/master -s sslRequired=NONE
If the admin user is not created, then the user can be created via this command.
./add-user-keycloak.sh --server http://ip_address_of_the_server:8080/admin --realm master --user admin --password adminPassword
Update: For the newer versions the file in available in the following path: /opt/jboss/keycloak/bin
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With