Class: SAML2::ServiceProvider

Inherits:
SSO show all
Defined in:
lib/saml2/service_provider.rb

Instance Attribute Summary

Attributes inherited from SSO

#name_id_formats, #single_logout_services

Attributes inherited from Role

#keys, #supported_protocols

Attributes included from OrganizationAndContacts

#contacts, #organization

Instance Method Summary collapse

Methods inherited from SSO

#from_xml, #initialize

Methods inherited from Role

#encryption_keys, #from_xml, #initialize, #signing_keys

Methods included from OrganizationAndContacts

#from_xml, #initialize

Methods inherited from Base

from_xml, #from_xml, load_object_array, load_string_array, lookup_qname, #to_s, #to_xml

Constructor Details

This class inherits a constructor from SAML2::SSO

Instance Method Details

#assertion_consumer_servicesObject



8
9
10
11
12
13
# File 'lib/saml2/service_provider.rb', line 8

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

#attribute_consuming_servicesObject



15
16
17
18
19
20
# File 'lib/saml2/service_provider.rb', line 15

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