Overview: Integrate Red Hat Developer Hub with Red Hat Ansible Automation Platform
Modern development environments often struggle with "siloed" automation, where infrastructure provisioning, identity management, and developer self-service portals are disconnected. This leads to manual hand-offs, inconsistent security configurations, and a slowed development lifecycle.
If you’re building a developer portal with Red Hat Developer Hub (Developer Hub) and want to integrate it with Red Hat Ansible Automation Platform, one of the first challenges you’ll face is authentication. How do you let developers access both platforms without managing multiple credentials?
In this guide, I’ll walk you through setting up a complete single sign-on (SSO) solution that connects Developer Hub, Ansible Automation Platform, and the Red Hat build of Keycloak, creating an authentication flow for developers from initial access to interacting with resources. This integration centralizes identity management to provide more secure SSO and automated token handling across platforms. It enables developers to use synchronized automation resources through a self-service catalog without needing to leave Developer Hub.
The authentication flow works like this (Figure 1):
- Developer accesses Developer Hub.
- The Ansible Automation Platform plugin shows the Sign in with Ansible Automation Platform button.
- The user clicks the button, triggering OAuth flow to Ansible Automation Platform.
- Ansible Automation Platform receives the OAuth request and redirects to its configured SSO authentication provider (Red Hat build of Keycloak).
- The user logs in with their credentials.
- The Red Hat build of Keycloak validates credentials and returns the user to Ansible Automation Platform.
- Ansible Automation Platform issues an OAuth token and redirects back to Developer Hub.
- Developer Hub stores the token and uses it for all subsequent Ansible Automation Platform API calls.
The user can now interact with resources directly from Developer Hub.

Figure 1: Developer authentication flow.
Prerequisites:
- You must have administrative access to a Red Hat OpenShift Container Platform cluster.
- Install the OpenShift command-line interface (CLI) and Kustomize locally.
- A valid Red Hat subscription is required.
In this learning path, you will:
- Use SSO credentials across the entire platform.
- Authenticate to Ansible Automation Platform through the Developer Hub plugin.
- Access and launch Ansible Automation Platform workflows directly from Developer Hub.
- View Ansible Automation Platform resources in the Developer Hub catalog.
- Use OAuth tokens for more secure API communication between Developer Hub and Ansible Automation Platform.