Class: SAML2::ServiceProvider
- Defined in:
- lib/saml2/service_provider.rb
Instance Attribute Summary
Attributes inherited from SSO
#name_id_formats, #single_logout_services
Attributes inherited from Role
Attributes included from OrganizationAndContacts
Instance Method Summary collapse
- #assertion_consumer_services ⇒ Object
- #attribute_consuming_services ⇒ Object
-
#initialize(root) ⇒ ServiceProvider
constructor
A new instance of ServiceProvider.
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_services ⇒ Object
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_services ⇒ Object
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 |