class SAML2::IdentityProvider
def attribute_profiles
-
(Array-)
def attribute_profiles @attribute_profiles ||= load_string_array(xml, 'md:AttributeProfile') end
def attributes
-
(Array-)
def attributes @attributes ||= load_object_array(xml, 'saml:Attribute', Attribute) end
def build(builder)
def build(builder) builder['md'].IDPSSODescriptor do |idp_sso_descriptor| super(idp_sso_descriptor) idp_sso_descriptor['WantAuthnRequestsSigned'] = want_authn_requests_signed? unless want_authn_requests_signed?.nil? single_sign_on_services.each do |sso| sso.build(idp_sso_descriptor, 'SingleSignOnService') end attribute_profiles.each do |ap| idp_sso_descriptor['md'].AttributeProfile(ap) end attributes.each do |attr| attr.build(idp_sso_descriptor) end end end
def from_xml(node)
def from_xml(node) super remove_instance_variable(:@want_authn_requests_signed) @single_sign_on_services = nil @attribute_profiles = nil @attributes = nil end
def initialize
def initialize super @want_authn_requests_signed = nil @single_sign_on_services = [] @attribute_profiles = [] @attributes = [] end
def single_sign_on_services
-
(Array-)
def single_sign_on_services @single_sign_on_services ||= load_object_array(xml, 'md:SingleSignOnService', Endpoint) end
def want_authn_requests_signed?
-
(Boolean, nil)-
def want_authn_requests_signed? unless instance_variable_defined?(:@want_authn_requests_signed) @want_authn_requests_signed = xml['WantAuthnRequestsSigned'] && xml['WantAuthnRequestsSigned'] == 'true' end @want_authn_requests_signed end