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.

Note:

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

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

Note:

Your offline token expires after 30 days of inactivity.

Procedure

  1. Navigate to This content is not included.Ansible Automation Platform on the Red Hat Hybrid Cloud Console.
  2. From the navigation panel, select Automation Hub > Connect to Hub.
  3. Under Offline token, click Load Token.
  4. Click the Copy to clipboard icon to copy the offline token.
  5. Paste the token into a file and store in a secure location.

What to do next

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.