---
title: "How to connect your self-hosted Keycloak to Unified"
img: https://s3.us-east-2.amazonaws.com/unified-article-images/how_to_connect_your_self_hosted_keycloak_to_unified-icon.png
date: 2026-11-23T00:00:00.000Z
updated: "2026-11-23T21:09:55.030Z"
tag: Guides
integrations: 
description: "Keycloak can run on your own servers or private cloud. Unified connects to it directly over HTTPS for HR, SSO data. You don't install anything on your side."
url: "https://docs.unified.to/guides/how_to_connect_your_self_hosted_keycloak_to_unified"
---

# How to connect your self-hosted Keycloak to Unified
------
_November 23, 2026_

Keycloak can run on your own servers or private cloud. Unified connects to it directly over HTTPS for HR, SSO data. You don't install anything on your side.


## Before you start

- **Keycloak must be reachable from the internet over HTTPS.** On a private network, publish its API through a reverse proxy with a publicly trusted certificate. Include the port if it isn't 443.
- **Firewall allowlist:** allow Unified's outbound IP for your region (also shown under **API Keys → Outbound IP addresses**): US `44.199.69.244`, EU `3.65.142.239`, AU `13.239.151.208`.
- **Use a dedicated Keycloak user or token** with access only to the data you want to share.

## What you'll enter in Unified

- **Keycloak Base URL**: The base URL of your Keycloak server, without a realm or path (e.g. [https://keycloak.example.com](https://keycloak.example.com/)). For older WildFly-based servers include the /auth context (e.g. [https://keycloak.example.com/auth](https://keycloak.example.com/auth)).
- **Realm**: The realm that holds your users and groups (e.g. master).
- **Client ID**: The Client ID of a confidential client in that realm with "Service accounts roles" enabled and the realm-management roles (view-users / manage-users, query-groups) granted to its service account.
- **Client Secret**: The Client Secret of that client (Clients -> {client} -> Credentials).

## Steps

1. In Keycloak, create the credentials listed above.
2. Confirm the address is reachable over HTTPS from outside your network.
3. In Unified, create a new Keycloak connection (or open your Authorization link) and enter the values.
4. Save. Unified tests the connection straight away.

## Troubleshooting

- **Timeout or connection refused:** the server isn't reachable, or the firewall blocks Unified's IP.
- **Certificate error:** use a publicly trusted certificate, not a self-signed one.
- **401 or 403:** check the credentials and the user's permissions.

See also: _Connecting Unified to your on-prem and self-hosted systems_.