Method: OneLogin::KlRubySaml::IdpMetadataParser#parse_remote

Defined in:
lib/onelogin/kl-ruby-saml/idp_metadata_parser.rb

#parse_remote(url, validate_cert = true) ⇒ REXML::document

Parse the Identity Provider metadata and update the settings with the IdP values

Parameters:

  • url (String)

    Url where the XML of the Identity Provider Metadata is published.

  • validate_cert (Boolean) (defaults to: true)

    If true and the URL is HTTPs, the cert of the domain is checked.

Returns:

  • (REXML::document)

    Parsed XML IdP metadata

Raises:

  • (HttpError)

    Failure to fetch remote IdP metadata


31
32
33
34
# File 'lib/onelogin/kl-ruby-saml/idp_metadata_parser.rb', line 31

def parse_remote(url, validate_cert = true)
   = (url, validate_cert)
  parse()
end