Skip to content

Commit 24e90a3

Browse files
authored
Merge pull request #552 from Eusebius1920/master
add basic auth for descriptor url
2 parents 7423f03 + 4789ebb commit 24e90a3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/onelogin/ruby-saml/idp_metadata_parser.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ def get_idp_metadata(url, validate_cert)
189189
end
190190

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

0 commit comments

Comments
 (0)