Create an OAuth application
To use the Helm chart to deploy Ansible automation portal, you must have set up an OAuth application on your Ansible Automation Platform instance.
About this task Copy linkLink copied!
However, you cannot run automation on your Ansible Automation Platform instance until you have deployed your Ansible automation portal Helm chart, because the OAuth configuration requires the URL for your deployment.
Create the OAuth Application on your Ansible Automation Platform instance, using a placeholder name for the deployment URL.
After deploying Ansible automation portal, you must replace the placeholder value with a URL derived from your deployment URL in your OAuth application.
The steps below describe how to create an OAuth Application in the Ansible Automation Platform Platform console.
Procedure Copy linkLink copied!
Enable Oauth token creation for external users Copy linkLink copied!
Ansible automation portal uses Ansible Automation Platform or authentication and as an OAuth provider.
About this task Copy linkLink copied!
You must enable OAuth token creation in Ansible Automation Platform so that users can authenticate with the platform from Ansible automation portal.
Users who do not have permission to log in to Ansible Automation Platform cannot log in to Self-service portal, because Ansible Automation Platform provides the OAuth tokens. Therefore, a user who is removed from an external IdP (for example LDAP, SAML, Azure) can no longer log into Ansible Automation Platform or Ansible automation portal. This prevents potential external token issues. For more information, refer to the Manage OAuth2 token creation for external users section of Configure central authentication for Ansible Automation Platform.
Procedure Copy linkLink copied!
- In a browser, log in to your Ansible Automation Platform instance as a user with admin privileges.
- In the navigation pane, select .
- Locate the Allow external users to create OAuth2 tokens setting.
- Enable Allow external users to create OAuth2 tokens if it is not already enabled:
- Click .
- Set Allow external users to create OAuth2 tokens to Enabled.

- Click to save your updates and return to the Platform gateway settings page.
- In the Platform gateway settings page, verify that the Allow external users to create OAuth2 tokens setting is enabled.
Generate an API token for Ansible Automation Platform authentication Copy linkLink copied!
You must create an API token in Ansible Automation Platform. The token is used in an OpenShift secret for Ansible Automation Platform authentication.
