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.

wget https://downloads.jboss.org/keycloak/10.0.2/keycloak-10.0.2.zip

#Unzip this archieve

unzip keycloak*

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

cd keycloak/bin &&

./standalone.sh -b 0.0.0.0 -Djboss.socket.binding.port-offset=109

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

./add-user-keycloak.sh — realm master — user admin — password adminPassword

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

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

./kcadm.sh update realms/master -s sslRequired=NONE

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

./standalone.sh -b 0.0.0.0 -Djboss.socket.binding.port-offset=109

#Browse the URL to access your keycloak server.

https://localhost:8189/auth

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.

A DevOps who is passionate about Autom@tion.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store