Skip to content

Commit

Permalink
Merge pull request #552 from Eusebius1920/master
Browse files Browse the repository at this point in the history
add basic auth for descriptor url
  • Loading branch information
pitbulk authored Oct 30, 2020
2 parents 7423f03 + 4789ebb commit 24e90a3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/onelogin/ruby-saml/idp_metadata_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ def get_idp_metadata(url, validate_cert)
end

get = Net::HTTP::Get.new(uri.request_uri)
get.basic_auth uri.user, uri.password if uri.user
@response = http.request(get)
return response.body if response.is_a? Net::HTTPSuccess

Expand Down

0 comments on commit 24e90a3

Please sign in to comment.