Skip to content

Commit 4789ebb

Browse files
author
Daniel Schlosser
committed
add basic auth for descriptor url
1 parent 7423f03 commit 4789ebb

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)