Configure automation hub tokens
You must authenticate your hub instance before you can upload or download collections.
As of Ansible Automation Platform's 2.7 release, you can no longer access the API through automation hub. To authenticate automation hub, follow the platform gateway authentication process.
Automation hub does not support basic authentication or authenticating through service accounts.
To sync collections from console.redhat.com to your automation hub instance, or if you are using Keycloak to authenticate your private automation hub, follow the procedure to create the offline token in automation hub.
Create the offline token in automation hub Copy linkLink copied!
In automation hub, you can create an offline token using Token management. The offline token is a secret token used to protect your content, so be sure to store it in a secure location.
About this task Copy linkLink copied!
Your offline token expires after 30 days of inactivity.
Procedure Copy linkLink copied!
- Navigate to Ansible Automation Platform on the Red Hat Hybrid Cloud Console.
- From the navigation panel, select .
- Under Offline token, click .
- Click the icon to copy the offline token.
- Paste the token into a file and store in a secure location.
What to do next Copy linkLink copied!
The offline token is now available for configuring automation hub as your default collections server or for uploading collections by using the ansible-galaxy command line tool.