Integrate with Red Hat Ansible Automation Platform / AWX
Support level: Community
What is Red Hat Ansible Automation Platform / AWX?
Red Hat Ansible Automation Platform and AWX provide web interfaces, APIs, and automation services for running, scheduling, and managing Ansible automation across infrastructure and applications.
-- https://www.redhat.com/en/technologies/management/ansible
Preparation
The following placeholders are used in this guide:
automation.companyis the FQDN of the Red Hat Ansible Automation Platform or AWX installation.authentik.companyis the FQDN of the authentik installation.
AWX and automation controller in Red Hat Ansible Automation Platform 2.4 and earlier use the controller SAML settings. Red Hat Ansible Automation Platform 2.5 and newer use platform gateway authentication methods.
Create or identify the SAML service provider certificate and private key that Red Hat Ansible Automation Platform or AWX will use for its own SAML service provider configuration. This is separate from the authentik signing certificate that you download later.
openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -sha256 -days 3650 -nodes
This documentation lists only the settings that you need to change from their default values. Be aware that any changes other than those explicitly mentioned in this guide could cause issues accessing your application.
authentik configuration
To support the integration of Red Hat Ansible Automation Platform or AWX with authentik, you need to create an application/provider pair in authentik.
Create an application and provider
authentik 2026.5 introduces changes to how the SAML provider behaves. Specifically, the provider now automatically sets the Issuer value to: https://authentik.company/application/saml/<application_slug>/metadata/
Older versions of authentik set this value to authentik by default. If you're running an older version, please set Issuer to https://authentik.company/application/saml/<application_slug>/metadata/, where <application_slug> is the slug that you selected for the application.
-
Log in to authentik as an administrator and open the authentik Admin interface.
-
Navigate to Applications > Applications and click New Application to open the application wizard.
- Application: provide a descriptive name, an optional group for the type of application, the policy engine mode, and optional UI settings. Note the Slug value because you will use it later.
- Choose a Provider type: select SAML Provider as the provider type.
- Configure the Provider: provide a name (or accept the auto-provided name), the authorization flow to use for this provider, and the following required configurations.
- If you are configuring AWX or automation controller, set ACS URL to
https://automation.company/sso/complete/saml/. - If you are configuring Red Hat Ansible Automation Platform 2.5 or newer, set ACS URL to
https://temp.temp. You will update this value after creating the authentication method in Red Hat Ansible Automation Platform. - Set Audience to
https://automation.company. - Under Advanced protocol settings, select an available Signing Certificate.
- If you are configuring AWX or automation controller, set ACS URL to
- Configure Bindings (optional): you can create a binding (policy, group, or user) to manage the listing and access to applications on a user's Application Dashboard page.
-
Click Create Application to save the new application and provider.
Copy the SAML values
- In the authentik Admin interface, navigate to Applications > Providers and open the SAML provider that you created.
- Copy the EntityID/Issuer value.
- Copy the SAML Endpoint value.
- Under Related objects > Download signing certificate, click Download.
Red Hat Ansible Automation Platform / AWX configuration
Use the subsection that matches your installation.
Configure AWX or automation controller
-
Log in to AWX or automation controller as an administrator.
-
Navigate to Settings and select SAML settings from the authentication settings.
-
Click Edit.
-
Set SAML Service Provider Entity ID to
https://automation.company. -
Set SAML Service Provider Public Certificate to the full contents of the service provider certificate that you created during preparation, including the
-----BEGIN CERTIFICATE-----and-----END CERTIFICATE-----lines. -
Set SAML Service Provider Private Key to the full contents of the service provider private key that you created during preparation, including the
-----BEGIN PRIVATE KEY-----and-----END PRIVATE KEY-----lines. -
Set SAML Service Provider Organization Info to the following value:
{"en-US": {"name": "authentik","url": "https://authentik.company","displayname": "authentik"}} -
Set SAML Service Provider Technical Contact and SAML Service Provider Support Contact to the appropriate contact information for your environment:
{"givenName": "Admin Name","emailAddress": "admin@company"} -
Set SAML Enabled Identity Providers to the following value. Replace
<Signing certificate from authentik without PEM headers>with the downloaded authentik signing certificate, with the-----BEGIN CERTIFICATE-----and-----END CERTIFICATE-----lines removed and the certificate entered as one line.{"authentik": {"entity_id": "<EntityID/Issuer from authentik>","url": "<SAML Endpoint from authentik>","x509cert": "<Signing certificate from authentik without PEM headers>","attr_username": "http://schemas.goauthentik.io/2021/02/saml/username","attr_user_permanent_id": "http://schemas.goauthentik.io/2021/02/saml/uid","attr_email": "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress","attr_first_name": "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"}} -
Click Save.
Configure Red Hat Ansible Automation Platform 2.5 or newer
-
Log in to Red Hat Ansible Automation Platform as an administrator.
-
Navigate to Access Management > Authentication Methods.
-
Click Create authentication.
-
Enter a name for the SAML configuration.
-
Set Authentication type to SAML.
-
Set SAML Service Provider Entity ID to
https://automation.company. -
Set SAML Service Provider Public Certificate to the full contents of the service provider certificate that you created during preparation, including the
-----BEGIN CERTIFICATE-----and-----END CERTIFICATE-----lines. -
Set SAML Service Provider Private Key to the full contents of the service provider private key that you created during preparation, including the
-----BEGIN PRIVATE KEY-----and-----END PRIVATE KEY-----lines. -
Set IdP Login URL to the SAML Endpoint value from authentik.
-
Set IdP Public Cert to the full PEM certificate that you downloaded from authentik.
-
Set Entity ID to the EntityID/Issuer value from authentik.
-
Configure the user attribute fields:
- Groups:
http://schemas.xmlsoap.org/claims/Group - User Email:
http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress - Username:
http://schemas.goauthentik.io/2021/02/saml/username - User First Name:
http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name - User Permanent ID:
http://schemas.goauthentik.io/2021/02/saml/uid
- Groups:
-
Leave SAML Assertion Consumer Service (ACS) URL blank. Red Hat Ansible Automation Platform generates this value after you create the authentication method.
-
Set SAML Service Provider Organization Info to the following value:
{"en-US": {"name": "authentik","url": "https://authentik.company","displayname": "authentik"}} -
Set SAML Service Provider Technical Contact and SAML Service Provider Support Contact to the appropriate contact information for your environment:
{"givenName": "Admin Name","emailAddress": "admin@company"} -
Select Enabled.
-
Click Create Authentication Method.
-
Open the authentication method that you created and copy the generated SAML Assertion Consumer Service (ACS) URL.
Update the authentik provider
Complete this subsection only for Red Hat Ansible Automation Platform 2.5 or newer.
- In the authentik Admin interface, navigate to Applications > Providers and open the SAML provider that you created.
- Click Edit.
- Set ACS URL to the generated SAML Assertion Consumer Service (ACS) URL from Red Hat Ansible Automation Platform.
- Click Save Changes.
Configuration verification
To confirm that authentik is properly configured with Red Hat Ansible Automation Platform or AWX, open the integration and sign in with SAML.