Skip to main content

Install Keycloak

Keycloak est un IAM très populaire.

Nous allons voir comment le configurer sur une machine spécifique.

Lien vers la documentation officielle: www.keycloak.org/docs

On Promise​

Prérequis​

  • Java 8
    sudo apt install -y openjdk-8-jdk
    java -version
    # Output
    # openjdk version "1.8.0_292"
    # OpenJDK Runtime Environment (build 1.8.0_292-8u292-b10-0ubuntu1~20.04-b10)
    # OpenJDK 64-Bit Server VM (build 25.292-b10, mixed mode)
  • Une base de données, PostgresSQL de préférence (tuto d'installation disponible ici)

Choix du 'Operating Mode'​

Keycloak propose 2 Operating Mode différents

  • Standalone
  • Domain

Selon la documentation officielle :

It is not recommended that you use standalone mode in production as you will have a single point of failure.

Nous allons donc voir comment installer la version Domain de keycloak.

Installation​

Installation des fichiers de la distribution.

Il est possible de télécharger la dernière version ici.

mkdir keycloak
cd keycloak
wget https://github.com/keycloak/keycloak/releases/download/15.0.2/keycloak-15.0.2.zip
unzip keycloak-15.0.2.zip