Project

Profile

Help

Story #6540

closed

As an CollectionRemote user, I can configure auth_url and token to mimic how the CLI authenticates

Added by bmbouter almost 3 years ago. Updated over 2 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Sprint/Milestone:
Start date:
Due date:
% Done:

100%

Estimated time:
Platform Release:
Groomed:
Yes
Sprint Candidate:
No
Tags:
Sprint:
Sprint 76
Quarter:

Description

Motivation

The current CollectionRemote options are documented here: https://pulp-ansible.readthedocs.io/en/latest/restapi.html#operation/remotes_ansible_collection_create

While this sync's collections from galaxy.ansible.com correctly it lacks the ability to be configured with auth_rul and token and therefore cannot authorize correctly from cloud.redhat.com for example.

The CLI docs on how this works are here https://docs.ansible.com/ansible/latest/user_guide/collections_using.html#configuring-the-ansible-galaxy-client

Solution

  1. Add auth_url and token to the CollectionRemote
  2. Update the sync machinery to authorize with the auth_url during content sync

Also available in: Atom PDF