Sha256: 4b12da65c92e9cc29c87cb66649637783516c336977b0c764a97cfdefbae2099

Contents?: true

Size: 1.06 KB

Versions: 3

Compression:

Stored size: 1.06 KB

Contents

xml.instruct!
xml.EntityDescriptor entity_descriptor_options do
  signature_for(reference_id: id, xml: xml)
  xml.SPSSODescriptor descriptor_options do
    configuration.certificates(use: :signing).each do |certificate|
      render certificate, xml: xml
    end
    configuration.certificates(use: :encryption).each do |certificate|
      render certificate, xml: xml
    end
    logout_urls.each do |item|
      xml.SingleLogoutService Binding: item[:binding], Location: item[:location]
    end
    name_id_formats.each do |format|
      xml.NameIDFormat format
    end
    acs_urls.each_with_index do |item, index|
      xml.AssertionConsumerService Binding: item[:binding], Location: item[:location], index: index, isDefault: index == 0 ? true : false
    end
  end
  xml.Organization do
    xml.OrganizationName organization_name, 'xml:lang': "en"
    xml.OrganizationDisplayName organization_name, 'xml:lang': "en"
    xml.OrganizationURL organization_url, 'xml:lang': "en"
  end
  xml.ContactPerson contactType: "technical" do
    xml.Company "mailto:#{contact_email}"
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
saml-kit-0.2.6 lib/saml/kit/builders/templates/service_provider_metadata.builder
saml-kit-0.2.5 lib/saml/kit/builders/templates/service_provider_metadata.builder
saml-kit-0.2.4 lib/saml/kit/builders/templates/service_provider_metadata.builder