Sha256: 4397d67ab25adb31a939614791a6de0b1a9a8c2f08bb0aed4e001ff06cf9b942

Contents?: true

Size: 881 Bytes

Versions: 13

Compression:

Stored size: 881 Bytes

Contents

module Saml
  module Kit
    class ServiceProviderMetadata < Metadata
      def initialize(xml)
        super("SPSSODescriptor", xml)
      end

      def assertion_consumer_services
        services('AssertionConsumerService')
      end

      def assertion_consumer_service_for(binding:)
        service_for(binding: binding, type: 'AssertionConsumerService')
      end

      def want_assertions_signed
        attribute = document.find_by("/md:EntityDescriptor/md:#{name}").attribute("WantAssertionsSigned")
        return true if attribute.nil?
        attribute.text.downcase == "true"
      end

      def self.builder_class
        Saml::Kit::Builders::ServiceProviderMetadata
      end

      Builder = ActiveSupport::Deprecation::DeprecatedConstantProxy.new('Saml::Kit::ServiceProviderMetadata::Builder', 'Saml::Kit::Builders::ServiceProviderMetadata')
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
saml-kit-0.2.14 lib/saml/kit/service_provider_metadata.rb
saml-kit-0.2.13 lib/saml/kit/service_provider_metadata.rb
saml-kit-0.2.12 lib/saml/kit/service_provider_metadata.rb
saml-kit-0.2.11 lib/saml/kit/service_provider_metadata.rb
saml-kit-0.2.10 lib/saml/kit/service_provider_metadata.rb
saml-kit-0.2.9 lib/saml/kit/service_provider_metadata.rb
saml-kit-0.2.8 lib/saml/kit/service_provider_metadata.rb
saml-kit-0.2.7 lib/saml/kit/service_provider_metadata.rb
saml-kit-0.2.6 lib/saml/kit/service_provider_metadata.rb
saml-kit-0.2.5 lib/saml/kit/service_provider_metadata.rb
saml-kit-0.2.4 lib/saml/kit/service_provider_metadata.rb
saml-kit-0.2.3 lib/saml/kit/service_provider_metadata.rb
saml-kit-0.2.2 lib/saml/kit/service_provider_metadata.rb