Appendix B. Keycloak
Keycloak is an open source identity and access management system. Configuring and deploying Keycloak in production is outside the scope of this book. In the following example, a realm file is provided with all users, roles, configurations, and so on, and needs to be imported into a running Keycloak server.
To simplify the installation of Keycloak, the Keycloak Docker container is used:
docker run --name keycloak -e KEYCLOAK_USER=admin -e KEYCLOAK_PASSWORD=admin \-p 8180:8080 jboss/keycloak:8.0.1
Then open a browser and enter the following URL: http://localhost:8180.
Click Administration Console, as shown in Figure B-1.
Figure B-1. Keycloak home page
Next, you will be presented with a login option similar to the one you see in Figure B-2. Use login/password admin as the credentials.
Figure B-2. Keycloak login page
In the main page, toggle the Master button to reveal the Add realm button, and click that so that your screen looks like the one shown in Figure B-3.
Figure B-3. Keycloak Add realm button
Finally, you should see a screen like the one shown in Figure B-4. You will need to import a Keycloak file. The file we used is in the code for the book at ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access