Sha256: 26b6d19c48dc724d046523c848cf6a7ae3c112a706626087c61f09c6c6208301

Contents?: true

Size: 975 Bytes

Versions: 14

Compression:

Stored size: 975 Bytes

Contents

encryption_for(xml: xml) do |xml|
  xml.Assertion(assertion_options) do
    xml.Issuer issuer
    signature_for(reference_id: reference_id, xml: xml)
    xml.Subject do
      xml.NameID name_id, Format: name_id_format
      xml.SubjectConfirmation Method: Saml::Kit::Namespaces::BEARER do
        xml.SubjectConfirmationData "", subject_confirmation_data_options
      end
    end
    xml.Conditions conditions_options do
      xml.AudienceRestriction do
        xml.Audience request.issuer
      end
    end
    xml.AuthnStatement authn_statement_options do
      xml.AuthnContext do
        xml.AuthnContextClassRef Saml::Kit::Namespaces::PASSWORD
      end
    end
    if assertion_attributes.any?
      xml.AttributeStatement do
        assertion_attributes.each do |key, value|
          xml.Attribute Name: key, NameFormat: Saml::Kit::Namespaces::URI, FriendlyName: key do
            xml.AttributeValue value.to_s
          end
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
saml-kit-0.3.0 lib/saml/kit/builders/templates/assertion.builder
saml-kit-0.2.18 lib/saml/kit/builders/templates/assertion.builder
saml-kit-0.2.17 lib/saml/kit/builders/templates/assertion.builder
saml-kit-0.2.16 lib/saml/kit/builders/templates/assertion.builder
saml-kit-0.2.15 lib/saml/kit/builders/templates/assertion.builder
saml-kit-0.2.14 lib/saml/kit/builders/templates/assertion.builder
saml-kit-0.2.13 lib/saml/kit/builders/templates/assertion.builder
saml-kit-0.2.12 lib/saml/kit/builders/templates/assertion.builder
saml-kit-0.2.11 lib/saml/kit/builders/templates/assertion.builder
saml-kit-0.2.10 lib/saml/kit/builders/templates/assertion.builder
saml-kit-0.2.9 lib/saml/kit/builders/templates/assertion.builder
saml-kit-0.2.8 lib/saml/kit/builders/templates/assertion.builder
saml-kit-0.2.7 lib/saml/kit/builders/templates/assertion.builder
saml-kit-0.2.6 lib/saml/kit/builders/templates/assertion.builder