---
title: "Advanced authentication for Data Grid in Red Hat OpenShift 4: Keycloak and SSO"
description: "The article details configuring authentication for Red Hat Data Grid in Red Hat OpenShift 4 by delegating console access control to single sign-on using Red Hat build of Keycloak. It explains that Data Grid acts as an OIDC client using the public datagrid-console client to initiate the authorization code flow, with Keycloak handling login and redirecting back. The Helm chart values define a security realm with a tokenRealm containing authServerUrl and introspectionUrl, the latter pointing to the internal Keycloak service for OAuth2 introspection. Two Keycloak clients are required: datagrid-console for browser-based authentication and datagrid-client, using a client secret, for token introspection. The article also compares Red Hat build of Keycloak with the deprecated SSO, noting differences in runtime foundation (Quarkus vs JBoss EAP), custom resources, and endpoint paths."
---

# Advanced authentication for Data Grid in Red Hat OpenShift 4: Keycloak and SSO

[Red Hat](https://yomu.fyi/company/red-hat) · Francisco De Melo Junior, Alexander Barbosa Ayala , Suparna Nag · Oct 23, 2026

**Type:** Tutorial

## Summary

The article details configuring authentication for Red Hat Data Grid in Red Hat OpenShift 4 by delegating console access control to single sign-on using Red Hat build of Keycloak. It explains that Data Grid acts as an OIDC client using the public datagrid-console client to initiate the authorization code flow, with Keycloak handling login and redirecting back. The Helm chart values define a security realm with a tokenRealm containing authServerUrl and introspectionUrl, the latter pointing to the internal Keycloak service for OAuth2 introspection. Two Keycloak clients are required: datagrid-console for browser-based authentication and datagrid-client, using a client secret, for token introspection. The article also compares Red Hat build of Keycloak with the deprecated SSO, noting differences in runtime foundation (Quarkus vs JBoss EAP), custom resources, and endpoint paths.

## Context

Enterprises running Red Hat Data Grid on OpenShift 4 need a centralized authentication mechanism instead of managing credentials directly inside Data Grid. This article implements that by delegating Data Grid console access control to Red Hat build of Keycloak, consolidating access control into a single service and providing enterprise capabilities like external database backing and automated user exports.

## Approach / What changed

Deploy Red Hat Data Grid using the Data Grid operator and Helm charts. Configure the security realm in the Helm values file with a tokenRealm that sets authServerUrl and oauth2Introspection details. Deploy Red Hat build of Keycloak using the Keycloak operator with a PostgreSQL database. Create two Keycloak clients: a public client named datagrid-console for the OIDC authorization code flow and a confidential client named datagrid-client for token introspection. Expose Keycloak via a Route and verify the authentication flow by signing into the Data Grid console.

## Takeaways

- Data Grid uses OAuth2 token introspection (RFC 7662) to verify active access tokens with Keycloak, eliminating the need to manage credentials directly inside Data Grid.
- Two Keycloak clients are required: datagrid-console (public, OIDC flow) for browser authentication and datagrid-client (confidential, client secret) for server-side token introspection.
- Red Hat build of Keycloak (Quarkus-based, rhbk-operator) has replaced the deprecated SSO (JBoss EAP-based, rhsso-operator); key differences include the endpoint path and operator packaging.

## FAQ

### What authentication protocol does Data Grid use with Keycloak?

Data Grid uses OAuth2 token introspection (RFC 7662) and the OpenID Connect authorization code flow. After user login via Keycloak, Data Grid verifies tokens using introspection.

### How do I configure the Data Grid Helm chart for Keycloak?

In the Helm values file, define a security realm with a tokenRealm that includes authServerUrl and introspectionUrl. The introspectionUrl points to the internal Keycloak service endpoint for token verification.

### What are the main differences between Red Hat build of Keycloak and SSO?

Red Hat build of Keycloak is Quarkus-based and uses the rhbk-operator, with endpoint paths under /realms/<realm> (no /auth prefix). SSO is JBoss EAP-based and uses the rhsso-operator, with paths under /auth/realms/<realm>.

**Tags:** [Authentication](https://yomu.fyi/topic/authentication), [Data Grid](https://yomu.fyi/topic/data-grid), [Keycloak](https://yomu.fyi/topic/keycloak), [Red Hat OpenShift](https://yomu.fyi/topic/red-hat-openshift)

- Source: [Red Hat](https://developers.redhat.com/articles/2026/10/23/advanced-authentication-data-grid-red-hat-openshift-4-keycloak-and-sso)
- Source URL: https://developers.redhat.com/articles/2026/10/23/advanced-authentication-data-grid-red-hat-openshift-4-keycloak-and-sso
- Ingested by Yomu: 2026-10-23T15:00:16.103Z

[Read original post](https://developers.redhat.com/articles/2026/10/23/advanced-authentication-data-grid-red-hat-openshift-4-keycloak-and-sso)
