diff --git a/lib/onelogin/ruby-saml/idp_metadata_parser.rb b/lib/onelogin/ruby-saml/idp_metadata_parser.rb index d4205896..8a2e4ca2 100644 --- a/lib/onelogin/ruby-saml/idp_metadata_parser.rb +++ b/lib/onelogin/ruby-saml/idp_metadata_parser.rb @@ -186,8 +186,6 @@ def parse_to_idp_metadata_array(idp_metadata, options = {}) idpsso_descriptors.map {|id| IdpMetadata.new(id, id.parent.attributes["entityID"])} end - private - # Retrieve the remote IdP metadata from the URL or a cached copy. # @param url [String] Url where the XML of the Identity Provider Metadata is published. # @param validate_cert [Boolean] If true and the URL is HTTPs, the cert of the domain is checked. @@ -220,6 +218,8 @@ def get_idp_metadata(url, validate_cert) ) end + private + class IdpMetadata attr_reader :idpsso_descriptor, :entity_id