Skip to content

Latest commit

 

History

History
50 lines (28 loc) · 1.11 KB

KEYCLOUK_SETUP-locally.md

File metadata and controls

50 lines (28 loc) · 1.11 KB

Setup Keycloak

In this part we will setup Keycloak. We will run a local Keycloak Docker container and reuse an existing realm configuration.

The image below shows the relevant elements we will use later.


Step 1: Start Keycloak Docker image local

Open a terminal session and enter:

$ docker run -it -e KEYCLOAK_USER=admin -e KEYCLOAK_PASSWORD=admin -p 8282:8080 jboss/keycloak:9.0.2

Step 2: Import the existing realm configuration

  1. Open the Keycloak in a browser select the Administration Console

Use following URL:

http://localhost:8282/

  1. Login to using the URL in your browser with user/admin and password/admin

  2. Select Add realm

  1. Choose for import Select file and open the quarkus-realm.json.

Users and role mappings in existing realm

STEP 1: Press view all users

You should see following users: admin, alice, jdoe

STEP 2: Verify the role mapping