Sha256: 622e9406134c9a7fda7d5589225147a3ee06335456254a08994358faa505d8b0

Contents?: true

Size: 879 Bytes

Versions: 13

Compression:

Stored size: 879 Bytes

Contents

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

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
saml-kit-1.0.6 lib/saml/kit/builders/templates/assertion.builder
saml-kit-1.0.5 lib/saml/kit/builders/templates/assertion.builder
saml-kit-1.0.4 lib/saml/kit/builders/templates/assertion.builder
saml-kit-1.0.3 lib/saml/kit/builders/templates/assertion.builder
saml-kit-1.0.2 lib/saml/kit/builders/templates/assertion.builder
saml-kit-1.0.1 lib/saml/kit/builders/templates/assertion.builder
saml-kit-1.0.0 lib/saml/kit/builders/templates/assertion.builder
saml-kit-0.3.6 lib/saml/kit/builders/templates/assertion.builder
saml-kit-0.3.5 lib/saml/kit/builders/templates/assertion.builder
saml-kit-0.3.4 lib/saml/kit/builders/templates/assertion.builder
saml-kit-0.3.3 lib/saml/kit/builders/templates/assertion.builder
saml-kit-0.3.2 lib/saml/kit/builders/templates/assertion.builder
saml-kit-0.3.1 lib/saml/kit/builders/templates/assertion.builder