Set up the OAuth application for Ansible Automation Platform
You have two options for setting up the OAuth application in Ansible Automation Platform, either manually or automatically in the Ansible Automation Platform UI.
Set up the OAuth application automatically Copy linkLink copied!
Automatic setup of an OAuth application by generating an OAuth token within Ansible Automation Platform and adding it to your configuration file. Upon service startup, the application is automatically created, and the client ID updated.
About this task Copy linkLink copied!
Procedure Copy linkLink copied!
- Generate an OAuth token in Ansible Automation Platform:
- Go to the Integrate with Ansible Automation Platform section for the steps to edit your
service-config.yamlfile and complete setting up the OAuth application automatically.
Set up the OAuth application manually Copy linkLink copied!
Manually set up an OAuth application within your Ansible Automation Platform instance. This is important for enabling token-based authentication and integrating external applications such as the Red Hat Edge Manager.
About this task Copy linkLink copied!
Procedure Copy linkLink copied!
Integrate with Ansible Automation Platform Copy linkLink copied!
Integrate the Red Hat Edge Manager with your Ansible Automation Platform instance by modifying the service-config.yaml file to include authentication type, API URLs, OAuth client ID, and an optional OAuth token, followed by restarting the services.
About this task Copy linkLink copied!
Procedure Copy linkLink copied!
Self-signed certificates Copy linkLink copied!
The Red Hat Edge Manager services automatically generate and store self-signed certificates in the /etc/flightctl/pki directory. These include:
-
/etc/flightctl/pki/ca.crt -
/etc/flightctl/pki/ca.key -
/etc/flightctl/pki/client-enrollment.crt -
/etc/flightctl/pki/client-enrollment.key -
/etc/flightctl/pki/server.crt -
/etc/flightctl/pki/server.key
You can use your own custom certificates by placing them in the following locations:
- Custom Server Certificate/Key Pair:
/etc/flightctl/pki/server.crt/etc/flightctl/pki/server.key
- Custom CA Certificate for Ansible Automation Platform authentication:
/etc/flightctl/pki/auth/ca.crt
Ensure that you adjust the insecureSkipTlsVerify setting in the service-config.yaml if you use a custom CA certificate for your Ansible Automation Platform instance.