Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"HTTPS required" while logging in to Keycloak as admin

enter image description here

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 Consolelink 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.

like image 308
Arjit Avatar asked Jun 03 '15 14:06

Arjit


People also ask

How do I access administrative Keycloak?

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.

What is Keycloak SSL required?

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.

How do I disable https in Keycloak?

In the "master" realm, over login tab. Change 'Require SSL' property to none.


1 Answers

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

like image 137
Nirojan Selvanathan Avatar answered Sep 25 '22 08:09

Nirojan Selvanathan