Skip to content

Instantly share code, notes, and snippets.

@jlsherrill
Created June 16, 2020 21:35
Show Gist options
  • Save jlsherrill/dece315a225a9de4365d176461591ef4 to your computer and use it in GitHub Desktop.
Save jlsherrill/dece315a225a9de4365d176461591ef4 to your computer and use it in GitHub Desktop.
fix for auth problem with pulpcore master (3.5.dev)
--- /home/vagrant/git/foreman/.vendor/ruby/2.5.0/gems/pulpcore_client-3.4.1/lib/pulpcore_client/api_client.rb.old 2020-06-16 21:33:23.789084701 +0000
+++ /home/vagrant/git/foreman/.vendor/ruby/2.5.0/gems/pulpcore_client-3.4.1/lib/pulpcore_client/api_client.rb 2020-06-16 21:33:43.404122809 +0000
@@ -55,7 +55,7 @@
}
connection = Faraday.new(:url => config.base_url, :ssl => ssl_options) do |conn|
- conn.basic_auth(config.username, config.password)
+ #conn.basic_auth(config.username, config.password)
if opts[:header_params]["Content-Type"] == "multipart/form-data"
conn.request :multipart
conn.request :url_encoded
@@ -314,6 +314,7 @@
# @param [Hash] query_params Query parameters
# @param [String] auth_names Authentication scheme name
def update_params_for_auth!(header_params, query_params, auth_names)
+ return
Array(auth_names).each do |auth_name|
auth_setting = @config.auth_settings[auth_name]
next unless auth_setting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment