---
# System prepended metadata

title: Ansible galaxy token auth

---

# Ansible galaxy token auth

* Need ability to only support token auth on galaxy endpoints
* Needs ability to generate tokens
    * tied to a user, today one user would access everything
    * will need more work on the pulp side to build authorization mechanisms for the galaxy api
    * would also need katello work to configure it properly
* Content guard to protect ansible content via token



Token implementation:
* https://github.com/ansible/galaxy_ng/blob/master/galaxy_ng/app/settings.py#L53
* https://www.django-rest-framework.org/api-guide/authentication/#tokenauthentication
* https://docs.ansible.com/ansible/latest/user_guide/collections_using.html#configuring-the-ansible-galaxy-client
* https://github.com/ansible/galaxy_ng/blob/b91cd506c7bccc5689455b88ba3173f6c25b0511/galaxy_ng/app/api/v3/views/auth.py#L12-L26

