Keycloak is an Open Source Identity and Access Management solution for modern Applications and Services. It is used to add authentication and user authorization.

To setup keycloak Service, follow these steps:-

#Download the archive.


#Unzip this archieve

unzip keycloak*

#Open Bin folder and run this command to start the keycloak server.

cd keycloak/bin &&

./ -b -Djboss.socket.binding.port-offset=109

#Open another terminal to configure keycloak server to set credentials as well as to run without ssl.

./ — realm master — user admin — password adminPassword

admin will be the username of the master realm and adminpassword is the password so change accordingly.

./ config credentials — server http://localhost:8189/auth — realm master — user admin

./ update realms/master -s sslRequired=NONE

#Close the server and run again in order to populate the server with new configurations.

./ -b -Djboss.socket.binding.port-offset=109

#Browse the URL to access your keycloak server.


Note: if you are using EC2 or Azure VM’s make sure to put this command on cronjob to avoid any downtime while booting up and down your machine.