Skip to content

Commit

Permalink
Support for bearer token
Browse files Browse the repository at this point in the history
Signed-off-by: Sachin <[email protected]>
  • Loading branch information
Sachin committed Oct 22, 2024
1 parent 86243c3 commit 9bd8650
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/chef-cli/policyfile/artifactory_cookbook_source.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def artifactory_api_key
private

def http_connection_for(base_url)
headers = { "X-Jfrog-Art-API" => artifactory_api_key }
headers = { "Authorization" => "Bearer #{artifactory_api_key}" }
@http_connections[base_url] ||= Chef::HTTP::Simple.new(base_url, headers:)
end

Expand Down

0 comments on commit 9bd8650

Please sign in to comment.