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 Role

#encryption_keys, #signing_keys

Methods inherited from Base

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

Constructor Details

#initialize(root) ⇒ ServiceProvider

Returns a new instance of ServiceProvider.



12
13
14
# File 'lib/saml2/service_provider.rb', line 12

def initialize(root)
  @root = root
end

Instance Method Details

#assertion_consumer_servicesObject



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

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



23
24
25
26
27
28
# File 'lib/saml2/service_provider.rb', line 23

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