# Setting up the Keycloak IAM server

Set up the Keycloak IAM server to secure the Pentaho Data Mastering application with the Single Sign On (SSO) authentication method. You can either install the default Keycloak IAM server or you can configure the Docker container to use an existing Keycloak IAM server.

**Important:** Components for Pentaho Data Mastering must be installed in the following order:

1. OpenObserver APM tool components
2. Keycloak IAM server components
3. Pentaho Data Mastering server components

If you have intalled a component out of order, uninstall that component and then install the components in order.

Complete the steps in one of the following procedures to set up the Keycloak IAM server:

* [Install the default Keycloak IAM server](/pentaho-data-mastering/installing-pentaho-data-mastering/setting-up-the-keycloak-iam-server/install-the-default-keycloak-iam-server.md)
* [Set up an existing Keycloak IAM server](/pentaho-data-mastering/installing-pentaho-data-mastering/setting-up-the-keycloak-iam-server/set-up-an-existing-keycloak-iam-server.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.pentaho.com/pentaho-data-mastering/installing-pentaho-data-mastering/setting-up-the-keycloak-iam-server.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
