SAML parsing tool built with ruby. SAML configurations may vary based on your specific needs however, some elements are required to get SAML working for your application. SAML is an open spec, and exchanges data via XML documents. This library will parse out the essential elements from the IDP metadata URL to assist you in getting the provider integrated into your system.
Add it to your Gemfile
:
gem 'saml_parser'
Or install it manually:
gem install saml_parser
instance = SamlParse.parse("https://your-providers-metadata-link", SamlBuilder.with_all_defaults)
# Methods
instance.ok?
instance.cert_fingerprint
instance.digest
instance.domain
instance.entity_id
instance.name_id_format
instance.sso_target_url
instance.xml_document
Note you must pass an instance of a SamlBuilder
object. This class uses the builder pattern allowing you to set various attributes on the object. You may also use the with_all_defaults
to use all default values.