Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refs #33147 - Allow Auth token without Auth URL #9529

Merged
merged 1 commit into from Aug 9, 2021

Conversation

sjha4
Copy link
Member

@sjha4 sjha4 commented Aug 3, 2021

In the PR: #9500 we wrongly added the validation that auth_token can not be provided without an auth URL.

The only validation needed is that auth_url can not be provided without a token. The vice-versa is fine and both fields blank is also valid.

Another issue I notice around collections is updating auth_url and token wasn't triggering a pulp remote update. That is fixed with this PR too.

@theforeman-bot
Copy link

Issues: #33147

@@ -413,7 +413,7 @@ def full_path(smart_proxy = nil, force_http = false)
elsif ostree?
"#{scheme}://#{pulp_uri.host.downcase}/pulp/content/web/#{relative_path}"
elsif ansible_collection?
"#{scheme}://#{pulp_uri.host.downcase}/pulp_ansible/galaxy/#{relative_path}/api"
"#{scheme}://#{pulp_uri.host.downcase}/pulp_ansible/galaxy/#{relative_path}/api/"
else
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Allows users to copy paste this path as remote for other pulp instance, (ex: hub) with a trailing slash.

@@ -96,7 +96,7 @@ <h4 translate>Sync Settings</h4>
<input id="requirementFile" type="file" name="file_path" onclick="this.value = null" onchange="angular.element(this).scope().handleFiles(this)"/>
<p bst-alert='info' ng-show="repository.content_type == 'ansible_collection'">
<span translate>
You can upload a requirements.yml file above to auto-fill contents <b>OR</b> paste contents of <a ng-href="https://docs.ansible.com/ansible/devel/dev_guide/collections_tech_preview.html#install-multiple-collections-with-a-requirements-file" target="_blank"> Requirements.yml </a>below.
You can upload a requirements.yml file above to auto-fill contents <b>OR</b> paste contents of <a ng-href="https://docs.ansible.com/ansible/latest/galaxy/user_guide.html#install-multiple-collections-with-a-requirements-file" target="_blank"> Requirements.yml </a>below.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Broken link in help text.

@sjha4 sjha4 merged commit 7253124 into Katello:master Aug 9, 2021
jlsherrill pushed a commit to jlsherrill/katello that referenced this pull request Aug 30, 2021
jlsherrill pushed a commit that referenced this pull request Aug 31, 2021
jlsherrill pushed a commit to jlsherrill/katello that referenced this pull request Nov 8, 2021
…n are supplied

Fixes #33208 - Allow Auth token without Auth URL (Katello#9529)

(cherry picked from commit 7253124)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants