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

DevFeed: [Advanced authentication for Data Grid in Red Hat OpenShift 4: Keycloak and SSO](<https://devfeed.tech/articles/advanced-authentication-for-data-grid-in-red-hat-openshift-4-keycloak-and-sso-97548.md>)

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

Author: Francisco De Melo Junior, Alexander Barbosa Ayala , Suparna Nag

Published: 2026-10-23T13:16:33Z

Content type: tutorial

Language: en

Sources: [Red Hat](<https://devfeed.tech/sources/red-hat.md>), [Red Hat Developer](<https://devfeed.tech/sources/red-hat-developer.md>)

Topics: [Keycloak](<https://devfeed.tech/topics/keycloak.md>), [Single sign-on (SSO)](<https://devfeed.tech/topics/sso.md>), [Authentication](<https://devfeed.tech/topics/authentication.md>), [Access Control](<https://devfeed.tech/topics/access-control.md>), [Secure token management](<https://devfeed.tech/topics/secure-token-management.md>)

Tags: [access-control](<https://devfeed.tech/tags/access-control.md>), [access-management](<https://devfeed.tech/tags/access-management.md>), [authentication](<https://devfeed.tech/tags/authentication.md>), [data-grid](<https://devfeed.tech/tags/data-grid.md>), [integration](<https://devfeed.tech/tags/integration.md>), [keycloak](<https://devfeed.tech/tags/keycloak.md>), [openshift](<https://devfeed.tech/tags/openshift.md>), [operators](<https://devfeed.tech/tags/operators.md>), [red-hat-openshift](<https://devfeed.tech/tags/red-hat-openshift.md>), [security](<https://devfeed.tech/tags/security.md>), [single-sign-on](<https://devfeed.tech/tags/single-sign-on.md>), [sso](<https://devfeed.tech/tags/sso.md>)

## AI overview

The article shows how to delegate Red Hat Data Grid 8 authentication in OpenShift 4 to Red Hat build of Keycloak. Data Grid's console uses the public `datagrid-console` client for OIDC authorization-code login; the server uses the confidential `datagrid-client` to introspect access tokens with Keycloak. The example deploys Keycloak with its operator, PostgreSQL, and a `KeycloakRealmImport` defining clients, roles, and users, while Data Grid is configured through Helm values with its security realm and endpoint. The article also includes a deprecated `KeycloakClient` path for migration from Red Hat SSO and notes that operator subscriptions differ. Its scope excludes LDAP/LDAPS (covered in part 2), Keycloak-to-Data Grid remote cache use, and cross-site integrations, which may be unsupported.

## Source excerpt

This article explains how to configure authentication for Red Hat Data Grid in Red Hat OpenShift 4 by delegating console access control to single sign-on (SSO) using Red Hat build of Keycloak. (Note: Direct directory integration using LDAP/LDAPS follows in part 2 of this series.) What this article covers: The post Advanced authentication for Data Grid in Red Hat OpenShift 4: Keycloak and SSO appeared first on Red Hat Developer.