Bug #33147
closedAnsible collection repo validate both auth url and token are supplied
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1984890
Description of problem:
Ansible collection repo fails to sync from the ansible hub, both token-based auth and SSO URL fail
Version-Release number of selected component (if applicable):
Satellite 6.10 sn 10
How reproducible:
always
Steps to Reproduce:
1. create ansible collection repo:
Upstream url:
https://cloud.redhat.com/api/automation-hub/
requirements.yml:
---
collections:
- redhat.satellite_operations
either use
Auth URL: https://sso.redhat.com/auth/realms/redhat-external/protocol/openid-connect/token
or generated Auth token (both based on https://cloud.redhat.com/ansible/automation-hub/token/)
2. sync repo
Actual results:
Synchronization tasks fail,
if using auth url, the error is:
400, message='Bad Request', url=URL
if using token, the the error is:
401, message='Unauthorized', url=URL
Expected results:
Successful sync
Additional info:
Looking directly at https://sso.redhat.com/auth/realms/redhat-external/protocol/openid-connect/token I'm seeing "An internal server error has occurred", the issue may as well be at ansible-hub