Sha256: 14b535558feff45c145b10afec60c0e87064dd9820ac6dc9c73e6d7dd58aa200

Contents?: true

Size: 579 Bytes

Versions: 5

Compression:

Stored size: 579 Bytes

Contents

require 'nokogiri'

require 'saml2/endpoint'
require 'saml2/sso'

module SAML2
  class ServiceProvider < SSO
    def assertion_consumer_services
      @assertion_consumer_services ||= begin
        nodes = @root.xpath('md:AssertionConsumerService', Namespaces::ALL)
        Endpoint::Indexed::Array.from_xml(nodes)
      end
    end

    def attribute_consuming_services
      @attribute_consuming_services ||= begin
        nodes = @root.xpath('md:AttributeConsumingService', Namespaces::ALL)
        AttributeConsumingService::Array.from_xml(nodes)
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
saml2-1.0.10 lib/saml2/service_provider.rb
saml2-1.0.9 lib/saml2/service_provider.rb
saml2-1.0.8 lib/saml2/service_provider.rb
saml2-1.0.7 lib/saml2/service_provider.rb
saml2-1.0.6 lib/saml2/service_provider.rb