Sha256: 2b1166e227a5414778e4b7b93843852c5a5c8f5d916bae7a391c299524aab5df

Contents?: true

Size: 1.24 KB

Versions: 14

Compression:

Stored size: 1.24 KB

Contents

module Saml
  module Elements
    class SPSSODescriptor
      include Saml::ComplexTypes::SSODescriptorType

      class AssertionConsumerService
        include Saml::ComplexTypes::IndexedEndpointType
        tag 'AssertionConsumerService'
      end

      tag 'SPSSODescriptor'

      attribute :authn_requests_signed, Boolean, tag: "AuthnRequestsSigned", default: false
      attribute :want_assertions_signed, Boolean, tag: "WantAssertionsSigned", default: false

      has_many :assertion_consumer_services, AssertionConsumerService
      has_many :attribute_consuming_services, Saml::Elements::AttributeConsumingService

      validates :assertion_consumer_services, presence: true

      def initialize(*args)
        super(*args)
        self.assertion_consumer_services ||= []
      end

      def add_assertion_consumer_service(binding, location, index, default = false)
        assertion_consumer_services << AssertionConsumerService.new(binding:    binding,
                                                                    location:   location,
                                                                    index:      index,
                                                                    is_default: default)
      end

    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
libsaml-3.13.1 lib/saml/elements/sp_sso_descriptor.rb
libsaml-3.13.0 lib/saml/elements/sp_sso_descriptor.rb
libsaml-3.12.0 lib/saml/elements/sp_sso_descriptor.rb
libsaml-3.11.0 lib/saml/elements/sp_sso_descriptor.rb
libsaml-3.10.0 lib/saml/elements/sp_sso_descriptor.rb
libsaml-3.9.3 lib/saml/elements/sp_sso_descriptor.rb
libsaml-3.9.2 lib/saml/elements/sp_sso_descriptor.rb
libsaml-3.9.1 lib/saml/elements/sp_sso_descriptor.rb
libsaml-3.9.0 lib/saml/elements/sp_sso_descriptor.rb
libsaml-3.8.0 lib/saml/elements/sp_sso_descriptor.rb
libsaml-3.7.0 lib/saml/elements/sp_sso_descriptor.rb
libsaml-3.6.0 lib/saml/elements/sp_sso_descriptor.rb
libsaml-3.5.0 lib/saml/elements/sp_sso_descriptor.rb
libsaml-3.4.0 lib/saml/elements/sp_sso_descriptor.rb